Show author names in problem and translation views

This commit is contained in:
pfischbeck committed 2019-02-05 12:00:25 +01:00
1 parent ddb1cfac33
commit 89a8fbba99
14 files changed
+69 -7

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<% if authors.empty? %>
Diese Übersetung wurde anonym erstellt.
<% else %>
Diese Übersetzung wurde von
<% if local_assigns[:has_anonymous_author] %>
<%= (authors.map(&:name)+Array("anonymen Nutzern")).to_sentence %>
<% else %>
<%= authors.map(&:name).to_sentence %>
<% end %>
erstellt.
<% end %>