1 <% set_title(t('.title', :id => @changeset.id)) %>
4 <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
5 <%= t('.title', :id => @changeset.id) %>
8 <div class="browse-section">
9 <h4><%= linkify(h(@changeset.tags['comment'].to_s.presence || t('browse.no_comment'))) %></h4>
10 <div class="details"><%= changeset_details(@changeset) %></div>
12 <%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
14 <h4 class="comments-header"><%= t('.discussion') %></h4>
17 <div class="buttons clearfix subscribe-buttons">
19 <% if @changeset.subscribers.exists?(current_user.id) %>
20 <input class="action-button" type="submit" name="unsubscribe" value="<%= t('javascripts.changesets.show.unsubscribe') %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
22 <input class="action-button" type="submit" name="subscribe" value="<%= t('javascripts.changesets.show.subscribe') %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
28 <div class="clearfix"></div>
30 <% if @comments.length > 0 %>
31 <div class='changeset-comments'>
34 <% @comments.each do |comment| %>
35 <% if comment.visible %>
36 <li id="c<%= comment.id %>">
37 <small class='deemphasize'>
38 <%= t(".commented_by",
39 :when => friendly_date(comment.created_at),
40 :exact_time => l(comment.created_at),
41 :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %>
42 <% if current_user and current_user.moderator? %>
43 — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_hide_url(comment.id) %>"><%= t('javascripts.changesets.show.hide_comment') %></span>
46 <%= comment.body.to_html %>
48 <% elsif current_user and current_user.moderator? %>
49 <li id="c<%= comment.id %>">
50 <small class='deemphasize'>
51 <%= t(".hidden_commented_by",
52 :when => friendly_date(comment.created_at),
53 :exact_time => l(comment.created_at),
54 :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %>
55 — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_unhide_url(comment.id) %>"><%= t('javascripts.changesets.show.unhide_comment') %></span>
57 <%= comment.body.to_html %>
66 <% unless current_user %>
68 <%= link_to(t(".join_discussion"), :controller => 'users', :action => 'login', :referer => request.fullpath) %>
73 <% unless @changeset.is_open? %>
75 <textarea class="comment" name="text" cols="40" rows="5"></textarea>
76 <div class="buttons clearfix">
77 <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"/>
82 <%= t('.still_open') %>
87 <% unless @ways.empty? %>
89 <%= type_and_paginated_count('way', @way_pages) %>
90 <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %>
93 <% @ways.each do |way| %>
94 <li><%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
99 <% unless @relations.empty? %>
101 <%= type_and_paginated_count('relation', @relation_pages) %>
102 <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
105 <% @relations.each do |relation| %>
106 <li><%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %></li>
111 <% unless @nodes.empty? %>
113 <%= type_and_paginated_count('node', @node_pages) %>
114 <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page" } %>
117 <% @nodes.each do |node| %>
118 <li><%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node), :rel => link_follow(node) %></li>
124 <% if @next_by_user || @prev_by_user %>
125 <div class='secondary-actions'>
126 <% if @prev_by_user %>
127 <%= link_to "<< #{@prev_by_user.id}", :id => @prev_by_user.id %>
131 user = (@prev_by_user || @next_by_user).user.display_name
132 link_to content_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") %>