diff --git a/README.md b/README.md index 880babb4..4cfcefe0 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Now you can access the running site from your browser: http://127.0.0.1:9292 If you'd like to fix a bug, or make an improvement, or add a new feature, it's easy! Just send us a Pull Request. -1. Fork it () +1. Fork it (https://github.com/neocities/neocities/fork) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/models/site.rb b/models/site.rb index d96eb4a5..784c6f97 100644 --- a/models/site.rb +++ b/models/site.rb @@ -47,7 +47,7 @@ class Site < Sequel::Model } VALID_EDITABLE_EXTENSIONS = %w{ - html htm txt js css scss md manifest less webmanifest xml json opml rdf + html htm txt js css scss md manifest less webmanifest xml json opml rdf svg } MINIMUM_PASSWORD_LENGTH = 5 diff --git a/public/js/news/profile_comment.js b/public/js/news/profile_comment.js index 13c7d533..21e535cc 100644 --- a/public/js/news/profile_comment.js +++ b/public/js/news/profile_comment.js @@ -1,7 +1,7 @@ var ProfileComment = { displayEditor: function(eventId) { - var commentDiv = $('#event_'+eventId+' div.content') - var eventActions = $('#event_'+eventId+'_actions') + var commentDiv = $('#event_'+eventId+' div.content').first() + var eventActions = $('#event_'+eventId+'_actions').first() eventActions.find('a#editLink').css('display', 'none') @@ -10,15 +10,14 @@ var ProfileComment = { }, cancelEditor: function(eventId) { - var eventActions = $('#event_'+eventId+'_actions') - var commentDiv = $('#event_'+eventId+' div.content') + var eventActions = $('#event_'+eventId+'_actions').first() + var commentDiv = $('#event_'+eventId+' div.content').first() eventActions.find('a#editLink').css('display', 'inline') commentDiv.text(commentDiv.find('textarea').text()) }, update: function(eventId, csrfToken) { - var eventActions = $('#event_'+eventId+'_actions') - var commentDiv = $('#event_'+eventId+' div.content') + var commentDiv = $('#event_'+eventId+' div.content').first() var self = this console.log(commentDiv.find('textarea').val()) $.post('/event/'+eventId+'/update_profile_comment', { diff --git a/views/dashboard.erb b/views/dashboard.erb index 8c865279..85f0e894 100644 --- a/views/dashboard.erb +++ b/views/dashboard.erb @@ -71,6 +71,11 @@ +
@@ -119,7 +124,7 @@
<% elsif file[:is_directory] %> -
+
@@ -272,6 +277,55 @@