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 <p class="font-italic">
10 <%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
12 <div class="details"><%= changeset_details(@changeset) %></div>
14 <%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
16 <h4 class="comments-header"><%= t(".discussion") %></h4>
19 <div class="buttons clearfix subscribe-buttons">
20 <form action="#" class="standard-form">
21 <% if @changeset.subscribers.exists?(current_user.id) %>
22 <input class="action-button" type="submit" name="unsubscribe" value="<%= t("javascripts.changesets.show.unsubscribe") %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
24 <input class="action-button" type="submit" name="subscribe" value="<%= t("javascripts.changesets.show.subscribe") %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
30 <div class="clearfix"></div>
32 <% if @comments.length > 0 %>
33 <div class='changeset-comments'>
34 <form action="#" class="standard-form">
35 <ul class="list-unstyled">
36 <% @comments.each do |comment| %>
37 <% if comment.visible %>
38 <li id="c<%= comment.id %>">
39 <small class='text-muted'>
40 <%= t(".commented_by",
41 :when => friendly_date_ago(comment.created_at),
42 :exact_time => l(comment.created_at),
43 :user => link_to(comment.author.display_name, user_path(comment.author))).html_safe %>
44 <% if current_user and current_user.moderator? %>
45 — <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>
48 <%= comment.body.to_html %>
50 <% elsif current_user and current_user.moderator? %>
51 <li id="c<%= comment.id %>">
52 <small class='text-muted'>
53 <%= t(".hidden_commented_by",
54 :when => friendly_date_ago(comment.created_at),
55 :exact_time => l(comment.created_at),
56 :user => link_to(comment.author.display_name, user_path(comment.author))).html_safe %>
57 — <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>
59 <%= comment.body.to_html %>
68 <% unless current_user %>
70 <%= link_to(t(".join_discussion"), :controller => "users", :action => "login", :referer => request.fullpath) %>
75 <% unless @changeset.is_open? %>
76 <form action="#" class="standard-form">
77 <textarea class="comment" name="text" cols="40" rows="5"></textarea>
78 <div class="buttons clearfix">
79 <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" />
84 <%= t(".still_open") %>
89 <% unless @ways.empty? %>
91 <%= type_and_paginated_count("way", @way_pages) %>
92 <%= render :partial => "paging_nav", :locals => { :pages => @way_pages, :page_param => "way_page" } %>
94 <ul class="list-unstyled">
95 <% @ways.each do |way| %>
96 <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>
101 <% unless @relations.empty? %>
103 <%= type_and_paginated_count("relation", @relation_pages) %>
104 <%= render :partial => "paging_nav", :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
106 <ul class="list-unstyled">
107 <% @relations.each do |relation| %>
108 <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>
113 <% unless @nodes.empty? %>
115 <%= type_and_paginated_count("node", @node_pages) %>
116 <%= render :partial => "paging_nav", :locals => { :pages => @node_pages, :page_param => "node_page" } %>
118 <ul class="list-unstyled">
119 <% @nodes.each do |node| %>
120 <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>
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") %>