1 <% set_title(t(".title", :id => @changeset.id)) %>
3 <%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>
5 <div class="browse-section">
7 <%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
9 <p class="details"><%= changeset_details(@changeset) %></p>
11 <%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
15 <h4><%= t(".discussion") %></h4>
19 <div class="col-auto">
20 <div class="subscribe-buttons">
22 <% if @changeset.subscribers.exists?(current_user.id) %>
23 <input class="action-button btn btn-sm btn-primary" type="submit" name="unsubscribe" value="<%= t("javascripts.changesets.show.unsubscribe") %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
25 <input class="action-button btn btn-sm btn-primary" type="submit" name="subscribe" value="<%= t("javascripts.changesets.show.subscribe") %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
33 <% if @comments.length > 0 %>
34 <div class='changeset-comments'>
36 <ul class="list-unstyled">
37 <% @comments.each do |comment| %>
38 <% if comment.visible %>
39 <li id="c<%= comment.id %>">
40 <small class='text-muted'>
41 <%= t(".comment_by_html",
42 :time_ago => tag.abbr(friendly_date_ago(comment.created_at),
43 :title => l(comment.created_at)),
44 :user => link_to(comment.author.display_name, user_path(comment.author))) %>
45 <% if current_user and current_user.moderator? %>
46 — <span class="action-button" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_hide_url(comment.id) %>"><%= t("javascripts.changesets.show.hide_comment") %></span>
50 <%= comment.body.to_html %>
53 <% elsif current_user and current_user.moderator? %>
54 <li id="c<%= comment.id %>">
55 <small class='text-muted'>
56 <%= t(".hidden_comment_by_html",
57 :time_ago => tag.abbr(friendly_date_ago(comment.created_at),
58 :title => l(comment.created_at)),
59 :user => link_to(comment.author.display_name, user_path(comment.author))) %>
60 — <span class="action-button text-muted" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_unhide_url(comment.id) %>"><%= t("javascripts.changesets.show.unhide_comment") %></span>
63 <%= comment.body.to_html %>
73 <% unless current_user %>
75 <%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
80 <% unless @changeset.open? %>
81 <form action="#" class="mb-3">
83 <textarea class="form-control" name="text" cols="40" rows="5"></textarea>
85 <div id="comment-error" class="alert-danger p-2 mb-3" hidden>
88 <input type="submit" name="comment" value="<%= t("javascripts.changesets.show.comment") %>" data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1" class="btn btn-sm btn-primary" />
93 <%= t(".still_open") %>
98 <% unless @ways.empty? %>
99 <%= render :partial => "paging_nav", :locals => { :heading => type_and_paginated_count("way", @way_pages), :pages => @way_pages, :page_param => "way_page" } %>
100 <ul class="list-unstyled">
101 <% @ways.each do |way| %>
102 <li><%= link_to printable_name(way, :version => true), { :action => "way", :id => way.way_id.to_s }, { :class => link_class("way", way), :title => link_title(way) } %></li>
107 <% unless @relations.empty? %>
108 <%= render :partial => "paging_nav", :locals => { :heading => type_and_paginated_count("relation", @relation_pages), :pages => @relation_pages, :page_param => "relation_page" } %>
109 <ul class="list-unstyled">
110 <% @relations.each do |relation| %>
111 <li><%= link_to printable_name(relation, :version => true), { :action => "relation", :id => relation.relation_id.to_s }, { :class => link_class("relation", relation), :title => link_title(relation) } %></li>
116 <% unless @nodes.empty? %>
117 <%= render :partial => "paging_nav", :locals => { :heading => type_and_paginated_count("node", @node_pages), :pages => @node_pages, :page_param => "node_page" } %>
118 <ul class="list-unstyled">
119 <% @nodes.each do |node| %>
120 <li><%= link_to printable_name(node, :version => true), { :action => "node", :id => node.node_id.to_s }, { :class => link_class("node", node), :title => link_title(node), :rel => link_follow(node) } %></li>
126 <% if @next_by_user || @prev_by_user %>
127 <div class='secondary-actions'>
128 <% if @prev_by_user %>
129 <%= link_to "<< #{@prev_by_user.id}", :id => @prev_by_user.id %>
132 <%= user = (@prev_by_user || @next_by_user).user.display_name
133 link_to tag.bdi(user), :controller => "changesets", :action => "index", :display_name => user %>
134 <% if @next_by_user %>
136 <%= link_to "#{@next_by_user.id} >>", :id => @next_by_user.id %>
141 <div class='secondary-actions'>
142 <%= link_to(t(".changesetxml"), :controller => "api/changesets", :action => "show") %>
144 <%= link_to(t(".osmchangexml"), :controller => "api/changesets", :action => "download") %>