diff --git a/app/assets/javascripts/content.js.coffee b/app/assets/javascripts/content.js.coffee new file mode 100644 index 00000000..60cb2609 --- /dev/null +++ b/app/assets/javascripts/content.js.coffee @@ -0,0 +1,3 @@ +$(document).ready -> + $('.share').click -> + $('#share-modal').openModal() diff --git a/app/views/content/_show.html.erb b/app/views/content/_show.html.erb index 0091caf2..0bd976fd 100644 --- a/app/views/content/_show.html.erb +++ b/app/views/content/_show.html.erb @@ -10,6 +10,7 @@
<%= content.class.icon %> + <%= content.name %>
diff --git a/app/views/universes/edit.html.erb b/app/views/universes/edit.html.erb index 75ebd595..3206fe83 100644 --- a/app/views/universes/edit.html.erb +++ b/app/views/universes/edit.html.erb @@ -1,3 +1,5 @@ <%= form_for @content do |form| %> <%= render partial: 'content/form', locals: { f: form, content: @content } %> -<% end %> \ No newline at end of file +<% end %> + +<%= render partial: 'content/share', locals: { shared_content: @content} %>