Fix issues with renaming of diary entry controller
authorTom Hughes <tom@compton.nu>
Sat, 17 Nov 2018 17:47:51 +0000 (17:47 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 17 Nov 2018 17:47:51 +0000 (17:47 +0000)
app/assets/javascripts/diary_entry.js
app/assets/stylesheets/common.scss
config/i18n-js.yml

index b513057..f137069 100644 (file)
@@ -10,7 +10,7 @@ $(document).ready(function () {
     }
 
     marker = L.marker(e.latlng, {icon: OSM.getUserIcon()}).addTo(map)
-      .bindPopup(I18n.t('diary_entry.edit.marker_text'));
+      .bindPopup(I18n.t('diary_entries.edit.marker_text'));
   }
 
   $("#usemap").click(function (e) {
@@ -35,7 +35,7 @@ $(document).ready(function () {
 
     if ($("#latitude").val() && $("#longitude").val()) {
       marker = L.marker(centre, {icon: OSM.getUserIcon()}).addTo(map)
-        .bindPopup(I18n.t('diary_entry.edit.marker_text'));
+        .bindPopup(I18n.t('diary_entries.edit.marker_text'));
     }
 
     map.on("click", setLocation);
index a16f7d8..d36e772 100644 (file)
@@ -1686,7 +1686,7 @@ tr.turn:hover {
 
 /* Rules for the diary entry page */
 
-.diary_entry {
+.diary_entries {
   #map {
     position: relative;
     width: 90%;
@@ -1722,7 +1722,7 @@ tr.turn:hover {
   }
 }
 
-.diary_entry-show img.user_thumbnail {
+.diary_entries-show img.user_thumbnail {
   float: left;
 }
 
index fa97034..b7f3b4d 100644 (file)
@@ -11,7 +11,7 @@ translations:
     - "*.site.edit.*"
     - "*.site.index.remote_failed"
     - "*.site.sidebar.search_results"
-    - "*.diary_entry.edit.marker_text"
+    - "*.diary_entries.edit.marker_text"
     - "*.layouts.project_name.title"
     - "*.geocoder.search_osm_nominatim.*"
   - file: "app/assets/javascripts/i18n/embed.js"