X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1977e66ace0751b8b4fdf3b55bde367ec33e7c57..18c70fa2ded1fbad78d108794800be0309bbf499:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 5a50aa91f..496589a08 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -1,13 +1,12 @@ <% set_title(t(".title", :id => @changeset.id)) %> -

- - <%= t(".title", :id => @changeset.id) %> -

+<%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>
-
<%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
-
<%= changeset_details(@changeset) %>
+

+ <%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %> +

+

<%= changeset_details(@changeset) %>

<%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %> @@ -17,9 +16,9 @@
<% if @changeset.subscribers.exists?(current_user.id) %> - " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> + " data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" /> <% else %> - " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> + " data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" /> <% end %>
@@ -35,12 +34,12 @@ <% if comment.visible %>
  • - <%= t(".commented_by", + <%= t(".commented_by_html", :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(comment.author.display_name, user_path(comment.author))).html_safe %> + :user => link_to(comment.author.display_name, user_path(comment.author))) %> <% if current_user and current_user.moderator? %> - — <%= t("javascripts.changesets.show.hide_comment") %> + — <%= t("javascripts.changesets.show.hide_comment") %> <% end %> <%= comment.body.to_html %> @@ -48,11 +47,11 @@ <% elsif current_user and current_user.moderator? %>
  • - <%= t(".hidden_commented_by", + <%= t(".hidden_commented_by_html", :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(comment.author.display_name, user_path(comment.author))).html_safe %> - — <%= t("javascripts.changesets.show.unhide_comment") %> + :user => link_to(comment.author.display_name, user_path(comment.author))) %> + — <%= t("javascripts.changesets.show.unhide_comment") %> <%= comment.body.to_html %>
  • @@ -64,23 +63,25 @@ <% end %> <% unless current_user %> -
    - <%= link_to(t(".join_discussion"), :controller => "users", :action => "login", :referer => request.fullpath) %> -
    +

    + <%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %> +

    <% end %> <% if current_user %> <% unless @changeset.is_open? %> -
    - + +
    + +
    - " data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1" /> + " data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1" class="btn btn-sm btn-primary" />
    <% else %> -
    - <%= t(".still_open") %> -
    +

    + <%= t(".still_open") %> +

    <% end %> <% end %> @@ -91,7 +92,7 @@ <% end %> @@ -103,7 +104,7 @@ <% end %> @@ -115,7 +116,7 @@ <% end %>