js delivr links, remove asset

This commit is contained in:
2023-01-22 15:37:39 +02:00
parent 3513b2ada4
commit 0ac1c341df
9 changed files with 11 additions and 13 deletions

View File

@ -1,5 +1,5 @@
= javascript_include_tag "merged/vue.min.js"
= javascript_include_tag "marked.min.js"
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
.flex.justify-center.m-20
.flex.flex-col

View File

@ -7,7 +7,7 @@
= f.input :picture , as: :file , label: (@story.picture.blank? ? "Add picture" : "Change picture")
= f.input :header
= f.input :text , input_html: {rows: rows(@story.text)}
= render "merged/form/editor" , object: @story , field: :text, form: f
= f.input :happened , wrapper_class: "flex mt-4 align-center"
.flex.justify-between.mt-6
%button.bg-cyan-200.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400

View File

@ -7,6 +7,6 @@
= story.header
%h4.text-xl.mt-10.md:text-2xl
= distance_of_time_in_words_to_now story.happened
ago half
ago
.mt-8{ prose_classes }
= markdown(story.text)

View File

@ -8,6 +8,6 @@
= story.header
%h4.text-xl.mt-4.lg:mt-8.md:text-2xl
= distance_of_time_in_words_to_now story.happened
ago pic
ago
.mt-3{ prose_classes }
= markdown(story.text)

View File

@ -1,3 +1,5 @@
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
.flex.justify-center
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
.text-2xl.font-bold.my-4

View File

@ -1,3 +1,5 @@
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
.flex.justify-center
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
.text-2xl.font-bold.my-4