]> source.dussan.org Git - redmine.git/commitdiff
Handle the case of none existing enumerations using no-data blocks (#24776).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 14 Jan 2017 10:04:40 +0000 (10:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 14 Jan 2017 10:04:40 +0000 (10:04 +0000)
Patch by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16188 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/enumerations/index.html.erb

index 65f7afba0a5ef51bba12c6e8f2ff84dd797995c6..042934b544ec47d41de827b5594da6378bb8daa9 100644 (file)
@@ -28,6 +28,8 @@
 <% end %>
 </table>
 <% reset_cycle %>
+<% else %>
+<p class="nodata"><%= l(:label_no_data) %></p>
 <% end %>
 <% end %>