diff --git a/app/views/admin/pages/index.html.erb b/app/views/admin/pages/index.html.erb index b187321..ab6c97a 100644 --- a/app/views/admin/pages/index.html.erb +++ b/app/views/admin/pages/index.html.erb @@ -65,7 +65,7 @@ <% end %> <%= page.revisions.size %> - <%= l [page.updated_at, page.latest_revision.updated_at].max, format: '%F %T' %> + <%= l page.updated_at, format: '%F %T' %> <% if page.publishable? %> <% if page.published? %> diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 01bd419..305ea0c 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -46,6 +46,22 @@ <% end %>
+
+
Hodnotenie zverejnené dňa
+

<%= l(@project.updated_at.to_date, format: :human) %>

+ <% if @project.outdated? %> + + <% end %> +
+
+ +
Aktuálny stav projektu

<%= @project.stage %>

@@ -68,19 +84,7 @@

-

- Posledná aktualizácia: <%= l(@project.updated_at.to_date, format: :human) %> -

- <% if @project.outdated? %> - - <% end %> -
+
<% @project.ratings.index_by(&:rating_type).each do |rating_type, rating| %>
<%= rating_stars(rating) %>