Improve browse design

This commit is contained in:
John Firebaugh 2013-11-11 17:57:38 -08:00
parent bd19e75214
commit c4090bb150
19 changed files with 278 additions and 357 deletions

View file

@ -624,15 +624,15 @@ nav.secondary {
float: left; float: left;
width: $sidebarWidth; width: $sidebarWidth;
background: #fff; background: #fff;
font-size: 13px;
h2, h3, h4 { h2 {
padding: $lineheight $lineheight $lineheight/2; padding: $lineheight $lineheight $lineheight/2;
} }
h4 { h3, h4 {
font-weight: normal; margin-top: $lineheight;
color: #666; margin-bottom: $lineheight/2;
font-size: 12px;
} }
.icon.close { .icon.close {
@ -937,7 +937,7 @@ header .search_form {
} }
} }
/* Rules for search results which appear in the popout sidebar */ /* Rules for search sidebar */
.search_results_entry { .search_results_entry {
ul li { ul li {
@ -959,6 +959,7 @@ header .search_form {
} }
/* Rules for entity history */ /* Rules for entity history */
#sidebar_content { #sidebar_content {
.browse_details { .browse_details {
position: relative; position: relative;
@ -970,7 +971,7 @@ header .search_form {
display: none; display: none;
} }
/* Rules for the changeset list shown by the history tab */ /* Rules for the history sidebar */
#sidebar .changesets { #sidebar .changesets {
li { li {
@ -980,26 +981,25 @@ header .search_form {
&.selected { background: #FFFFE6; } &.selected { background: #FFFFE6; }
/* color is derived from changeset bbox fillColor in history.js */ /* color is derived from changeset bbox fillColor in history.js */
}
h4 { h4 {
padding: 0; margin-top: 0;
} a {
}
.comment a {
font-weight: 500;
color: #000; color: #000;
} }
}
} }
/* Rules for the data browser */ /* Rules for the browse sidebar */
#sidebar_content { #sidebar_content {
.browse-section { .browse-section {
padding: 10px 20px; padding: $lineheight;
h4 { h4:first-child {
padding: 0; margin-top: 0;
}
} }
.paginate { .paginate {
@ -1008,7 +1008,6 @@ header .search_form {
border: 1px solid #eee; border: 1px solid #eee;
border-radius: 3px; border-radius: 3px;
} }
}
.paginate ul { .paginate ul {
padding-left: 20px; padding-left: 20px;
@ -1037,11 +1036,9 @@ header .search_form {
.browse-tag-list { .browse-tag-list {
background-color: #F6F6F6; background-color: #F6F6F6;
border-top: 1px solid #ddd; border: 1px solid #ddd;
border-bottom: 1px solid #ddd; border-radius: 3px;
font-size: 12px; font-size: 12px;
margin-left: -$lineheight;
margin-right: -$lineheight;
li { li {
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
@ -1056,7 +1053,7 @@ header .search_form {
display: inline-block; display: inline-block;
width: 50%; width: 50%;
float: left; float: left;
padding: 6px 10px 6px $lineheight; padding: 6px 10px;
} }
.browse-tag-k { .browse-tag-k {
@ -1069,38 +1066,46 @@ header .search_form {
background-color: #fff; background-color: #fff;
} }
} }
.warning {
margin: $lineheight/2 0;
padding: $lineheight/2;
font-size: 90%;
}
.note-comments li {
margin: $lineheight/2 0;
}
} }
/* Rules for export information which appears in the popout sidebar */ /* Rules for export sidebar */
.export_bounds, .export_button { .export_form {
padding: $lineheight;
.export_area_inputs,
.export_button {
text-align: center; text-align: center;
} }
.export_area_inputs { .export_area_inputs {
margin-bottom: $lineheight/2; margin-bottom: $lineheight/2;
input[type="text"] { input[type="text"] {
width: 80px; width: 80px;
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
.export_bound { .export_bound {
margin: $lineheight/4; margin: $lineheight/4;
} }
#export_osm { .export_button {
span.small-title { margin-top: $lineheight;
font-weight: 500;
display: block;
font-size: 14px;
padding-bottom: 5px;
} }
dl { dl {
padding-left: 30px; padding-left: $lineheight/2;
font-size: 13px;
color: #666;
dd { dd {
margin-left: 0; margin-left: 0;
margin-bottom: 10px; margin-bottom: 10px;
@ -2122,66 +2127,6 @@ a.button {
} }
} }
/* Rules for the notes interface */
.leaflet-popup-content .note {
padding-top: $lineheight/2;
}
.leaflet-popup-content .note {
h2 {
margin-bottom: $lineheight/2;
}
div {
margin-top: $lineheight/2;
}
.permalink {
position: absolute;
top: $lineheight/4;
left: $lineheight/4;
min-width: 15px;
min-height: 15px;
}
.permalink span {
display: none;
padding-left: $lineheight;
}
.permalink:hover span {
display: block;
}
.warning {
display: block;
background-color: #ffe0cc;
padding: 4px 6px;
margin-bottom: $lineheight/2;
}
.comment_body {
margin-top: 2px;
margin-bottom: 2px;
p {
margin-top: 0px;
margin-bottom: 0px;
}
}
.comment {
width: 100%;
height: 100px;
}
.buttons {
margin-top: $lineheight/4;
text-align: right;
}
}
/* Rules for the iD editor */ /* Rules for the iD editor */
.id-embed { .id-embed {

View file

@ -1,30 +1,32 @@
<div class='browse-section common'> <h4>
<% if common_details.changeset.tags['comment'].present? %> <% if common_details.changeset.tags['comment'].present? %>
<%= linkify(h(common_details.changeset.tags['comment'])) %> <%= linkify(h(common_details.changeset.tags['comment'])) %>
<% else %> <% else %>
(no comment) (no comment)
<% end %> <% end %>
<h4> </h4>
<div class="details">
<% if common_details.visible? %> <% if common_details.visible? %>
<%= t 'browse.common_details.edited' %> <%= t 'browse.common_details.edited' %>
<% else %> <% else %>
<%= t 'browse.common_details.deleted' %> <%= t 'browse.common_details.deleted' %>
<% end %> <% end %>
<abbr><%= distance_of_time_in_words_to_now(common_details.timestamp) %> ago</abbr> <abbr><%= distance_of_time_in_words_to_now(common_details.timestamp) %> ago</abbr>
<% if common_details.changeset.user.data_public? %> <% if common_details.changeset.user.data_public? %>
<%= t 'browse.common_details.by' %> <%= t 'browse.common_details.by' %>
<%= link_to h(common_details.changeset.user.display_name), :controller => "user", :action => "view", :display_name => common_details.changeset.user.display_name %> <%= link_to h(common_details.changeset.user.display_name), :controller => "user", :action => "view", :display_name => common_details.changeset.user.display_name %>
<% end %> <% end %>
</h4> </div>
<h4> <div class="details">
<%= t 'browse.common_details.version' %> <%= t 'browse.common_details.version' %>
#<%= h(common_details.version) %> #<%= h(common_details.version) %>
&middot; &middot;
<%= t 'browse.common_details.in_changeset' %> <%= t 'browse.common_details.in_changeset' %>
#<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %> #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
</h4>
</div> </div>
<%= render :partial => "tag_details", :object => common_details.tags %> <%= render :partial => "tag_details", :object => common_details.tags %>

View file

@ -1,13 +1,14 @@
<div class='browse_details' id="<%= node_details.version %>"> <div class='browse-section'>
<% if node_details.redacted? %> <% if node_details.redacted? %>
<div class='browse-section'> <%= t 'browse.redacted.message_html',
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.node'), :redaction_link => link_to(t('browse.redacted.redaction', :id => node_details.redaction.id), node_details.redaction), :version => node_details.version %> :type => t('browse.redacted.type.node'),
</div> :version => node_details.version,
<% else %> :redaction_link => link_to(t('browse.redacted.redaction',
:id => node_details.redaction.id), node_details.redaction) %>
<% else %>
<%= render :partial => "common_details", :object => node_details %> <%= render :partial => "common_details", :object => node_details %>
<% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %> <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
<div class='browse-section'>
<h4><%= t 'browse.node_details.part_of' %></h4> <h4><%= t 'browse.node_details.part_of' %></h4>
<ul> <ul>
<% node_details.ways.each do |way| %> <% node_details.ways.each do |way| %>
@ -15,7 +16,6 @@
<% end %> <% end %>
<%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %> <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %>
</ul> </ul>
</div>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>

View file

@ -1,23 +1,21 @@
<div class='browse_details' id="<%= relation_details.version %>"> <div class='browse-section'>
<% if relation_details.redacted? %> <% if relation_details.redacted? %>
<div class='browse-section'> <%= t 'browse.redacted.message_html',
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(t('browse.redacted.redaction', :id => relation_details.redaction.id), relation_details.redaction), :version => relation_details.version %>< :type => t('browse.redacted.type.relation'),
</div> :version => relation_details.version,
<% else %> :redaction_link => link_to(t('browse.redacted.redaction',
:id => relation_details.redaction.id), relation_details.redaction) %><
<% else %>
<%= render :partial => "common_details", :object => relation_details %> <%= render :partial => "common_details", :object => relation_details %>
<% unless relation_details.relation_members.empty? %> <% unless relation_details.relation_members.empty? %>
<div class='browse-section'>
<h4><%= t'browse.relation_details.members' %></h4> <h4><%= t'browse.relation_details.members' %></h4>
<ul><%= render :partial => "relation_member", :collection => relation_details.relation_members %></ul> <ul><%= render :partial => "relation_member", :collection => relation_details.relation_members %></ul>
</div>
<% end %> <% end %>
<% unless relation_details.containing_relation_members.empty? %> <% unless relation_details.containing_relation_members.empty? %>
<div class='browse-section'>
<h4><%= t'browse.relation_details.part_of' %></h4> <h4><%= t'browse.relation_details.part_of' %></h4>
<ul><%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %></ul> <ul><%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %></ul>
</div>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>

View file

@ -1,8 +1,6 @@
<% unless tag_details.empty? %> <% unless tag_details.empty? %>
<div class='browse-section'> <h4><%= t 'browse.tag_details.tags' %></h4>
<h4><%= t'browse.tag_details.tags' %></h4>
<ul class='browse-tag-list'> <ul class='browse-tag-list'>
<%= render :partial => "tag", :collection => tag_details.sort %> <%= render :partial => "tag", :collection => tag_details.sort %>
</ul> </ul>
</div>
<% end %> <% end %>

View file

@ -1,13 +1,14 @@
<div class='browse_details' id="<%= way_details.version %>"> <div class='browse-section'>
<% if way_details.redacted? %> <% if way_details.redacted? %>
<div class='browse-section'> <%= t 'browse.redacted.message_html',
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.way'), :redaction_link => link_to(t('browse.redacted.redaction', :id => way_details.redaction.id), way_details.redaction), :version => way_details.version %> :type => t('browse.redacted.type.way'),
</div> :version => way_details.version,
<% else %> :redaction_link => link_to(t('browse.redacted.redaction',
:id => way_details.redaction.id), way_details.redaction) %>
<% else %>
<%= render :partial => "common_details", :object => way_details %> <%= render :partial => "common_details", :object => way_details %>
<% unless way_details.way_nodes.empty? %> <% unless way_details.way_nodes.empty? %>
<div class='browse-section'>
<h4><%= t'browse.way_details.nodes' %></h4> <h4><%= t'browse.way_details.nodes' %></h4>
<ul> <ul>
<% way_details.way_nodes.each do |wn| %> <% way_details.way_nodes.each do |wn| %>
@ -20,16 +21,13 @@
</li> </li>
<% end %> <% end %>
</ul> </ul>
</div>
<% end %> <% end %>
<% unless way_details.containing_relation_members.empty? %> <% unless way_details.containing_relation_members.empty? %>
<div class='browse-section'>
<h4><%= t'browse.way_details.part_of' %></h4> <h4><%= t'browse.way_details.part_of' %></h4>
<ul> <ul>
<%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %> <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>
</ul> </ul>
</div>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>

View file

@ -6,14 +6,12 @@
</h2> </h2>
<div class="browse-section"> <div class="browse-section">
<p><%= @changeset.tags['comment'].to_s.presence || t('browse.changeset_details.no_comment') %></p> <h4><%= @changeset.tags['comment'].to_s.presence || t('browse.changeset_details.no_comment') %></h4>
<h4><%= changeset_details(@changeset) %></h4> <div class="details"><%= changeset_details(@changeset) %></div>
</div>
<%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %> <%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
<% unless @nodes.empty? %> <% unless @nodes.empty? %>
<div class='browse-section paginate'>
<h4> <h4>
<%= type_and_paginated_count('node', @node_pages) %> <%= type_and_paginated_count('node', @node_pages) %>
<%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %> <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %>
@ -23,11 +21,9 @@
<li><%= link_to h(printable_name(node, true)), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node) %></li> <li><%= link_to h(printable_name(node, true)), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node) %></li>
<% end %> <% end %>
</ul> </ul>
</div> <% end %>
<% end %>
<% unless @ways.empty? %> <% unless @ways.empty? %>
<div class='browse-section paginate'>
<h4> <h4>
<%= type_and_paginated_count('way', @way_pages) %> <%= type_and_paginated_count('way', @way_pages) %>
<%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %> <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %>
@ -37,11 +33,9 @@
<li><%= link_to h(printable_name(way, true)), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li> <li><%= link_to h(printable_name(way, true)), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
<% end %> <% end %>
</ul> </ul>
</div> <% end %>
<% end %>
<% unless @relations.empty? %> <% unless @relations.empty? %>
<div class='browse-section paginate'>
<h4> <h4>
<%= type_and_paginated_count('relation', @relation_pages) %> <%= type_and_paginated_count('relation', @relation_pages) %>
<%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %> <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
@ -51,11 +45,11 @@
<li><%= link_to h(printable_name(relation, true)), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %></li> <li><%= link_to h(printable_name(relation, true)), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %></li>
<% end %> <% end %>
</ul> </ul>
</div> <% end %>
<% end %> </div>
<div class='browse-section secondary-actions'> <div class='secondary-actions'>
<h4><%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %> <%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %>
&middot; &middot;
<%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %></h4> <%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %>
</div> </div>

View file

@ -6,7 +6,7 @@
</h2> </h2>
<div class="note browse-section"> <div class="note browse-section">
<h4><%= t('javascripts.notes.new.intro') %></h4> <p class="warning"><%= t('javascripts.notes.new.intro') %></p>
<form action="#"> <form action="#">
<input type="hidden" name="lon"> <input type="hidden" name="lon">
<input type="hidden" name="lat"> <input type="hidden" name="lat">

View file

@ -1,6 +1,6 @@
<% <%
@name = printable_name @node @name = printable_name @node
set_title(t('browse.node.node') + ' | ' + @name) set_title(t('browse.node.node') + ' | ' + @name)
%> %>
<h2> <h2>
@ -10,9 +10,8 @@ set_title(t('browse.node.node') + ' | ' + @name)
<%= render :partial => "node_details", :object => @node %> <%= render :partial => "node_details", :object => @node %>
<div class='browse-section secondary-actions clearfix'> <div class='secondary-actions'>
<h4><%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %> <%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %>
&middot; &middot;
<%= link_to(t('browse.node.view_history'), :action => "node_history") %> <%= link_to(t('browse.node.view_history'), :action => "node_history") %>
</h4>
</div> </div>

View file

@ -1,6 +1,6 @@
<% <%
@name = printable_name @node @name = printable_name @node
set_title(t('browse.node_history.node_history') + ' | ' + @name) set_title(t('browse.node_history.node_history') + ' | ' + @name)
%> %>
<h2> <h2>
@ -12,8 +12,8 @@ set_title(t('browse.node_history.node_history') + ' | ' + @name)
<%= render :partial => "node_details", :object => node %> <%= render :partial => "node_details", :object => node %>
<% end %> <% end %>
<div class='browse-section secondary-actions clearfix'> <div class='secondary-actions'>
<span><%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %> <%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %>
&middot; &middot;
<%= link_to(t('browse.node_history.view_details'), :action => "node") %></span> <%= link_to(t('browse.node_history.view_details'), :action => "node") %>
</div> </div>

View file

@ -4,36 +4,23 @@
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a> <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
<%= t "browse.note.#{@note.status}_title", :note_name => @note.id %> <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
</h2> </h2>
<div class="browse-section"> <div class="browse-section">
<h4> <h4><%= h(@note.comments.first.body.to_html) %></h4>
<div class="details">
<%= note_event('open', @note.created_at, @note.author) %> <%= note_event('open', @note.created_at, @note.author) %>
<% if @note.status == "closed" %> <% if @note.status == "closed" %>
<br/> <br/>
<%= note_event(@note.status, @note.closed_at, @note.comments.last.author) %> <%= note_event(@note.status, @note.closed_at, @note.comments.last.author) %>
<% end %> <% end %>
</h4> </div>
</div>
<% if @note.comments.find { |comment| comment.author.nil? } -%> <% if @note.comments.find { |comment| comment.author.nil? } -%>
<div class='browse-section common'>
<p class='warning'><%= t "javascripts.notes.show.anonymous_warning" %></p> <p class='warning'><%= t "javascripts.notes.show.anonymous_warning" %></p>
</div> <% end -%>
<% end -%>
<div class='browse-section common'> <% if @note.comments.length > 1 %>
<div class='browse-field' id="c<%= @note.comments.first.id %>"> <div class='note-comments'>
<h4><%= t "browse.note.description" %></h4>
<%= h(@note.comments.first.body.to_html) %>
</div>
<div class='browse-field'>
<h4><%= t "browse.node_details.coordinates" %></h4>
<p class='geo'><%= link_to ("<span class='latitude'>#{number_with_delimiter(@note.lat)}</span>, <span class='longitude'>#{number_with_delimiter(@note.lon)}</span>".html_safe), {:controller => 'site', :action => 'index', :lat => h(@note.lat), :lon => h(@note.lon), :zoom => "18"} %></p>
</div>
</div>
<% if @note.comments.length > 1 %>
<div class='browse-section clearfix note-comments'>
<ul> <ul>
<% @note.comments[1..-1].each do |comment| %> <% @note.comments[1..-1].each do |comment| %>
<li id="c<%= comment.id %>"> <li id="c<%= comment.id %>">
@ -43,8 +30,8 @@
<% end %> <% end %>
</ul> </ul>
</div> </div>
<% end %> <% end %>
<div class="browse-section">
<% if @note.status == "open" %> <% if @note.status == "open" %>
<form action="#"> <form action="#">
<textarea class="comment" name="text" cols="40" rows="5"></textarea> <textarea class="comment" name="text" cols="40" rows="5"></textarea>

View file

@ -1,6 +1,6 @@
<% <%
@name = printable_name @relation @name = printable_name @relation
set_title(t('browse.relation.relation') + ' | ' + @name) set_title(t('browse.relation.relation') + ' | ' + @name)
%> %>
<h2> <h2>
@ -10,7 +10,8 @@ set_title(t('browse.relation.relation') + ' | ' + @name)
<%= render :partial => "relation_details", :object => @relation %> <%= render :partial => "relation_details", :object => @relation %>
<div class='secondary-actions clearfix'> <div class='secondary-actions'>
<span><%= link_to(t('browse.relation.download_xml'), :controller => "relation", :action => "read") %> <%= link_to(t('browse.relation.download_xml'), :controller => "relation", :action => "read") %>
<%= link_to(t('browse.relation.view_history'), :action => "relation_history") %></span> &middot;
<%= link_to(t('browse.relation.view_history'), :action => "relation_history") %>
</div> </div>

View file

@ -1,6 +1,6 @@
<% <%
@name = printable_name @relation @name = printable_name @relation
set_title(t('browse.relation_history.relation_history') + ' | ' + @name) set_title(t('browse.relation_history.relation_history') + ' | ' + @name)
%> %>
<h2> <h2>
@ -12,7 +12,8 @@ set_title(t('browse.relation_history.relation_history') + ' | ' + @name)
<%= render :partial => "relation_details", :object => relation %> <%= render :partial => "relation_details", :object => relation %>
<% end %> <% end %>
<div class='secondary-actions clearfix'> <div class='secondary-actions'>
<span><%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %> <%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %>
<%= link_to(t('browse.relation_history.view_details'), :action => "relation") %></span> &middot;
<%= link_to(t('browse.relation_history.view_details'), :action => "relation") %>
</div> </div>

View file

@ -1,7 +1,8 @@
<% <%
@name = printable_name @way @name = printable_name @way
set_title(t('browse.way.way') + ' | ' + @name) set_title(t('browse.way.way') + ' | ' + @name)
%> %>
<h2> <h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a> <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
<%= t'browse.way.way_title', :way_name => @name %> <%= t'browse.way.way_title', :way_name => @name %>
@ -9,9 +10,8 @@ set_title(t('browse.way.way') + ' | ' + @name)
<%= render :partial => "way_details", :object => @way %> <%= render :partial => "way_details", :object => @way %>
<div class='browse-section secondary-actions clearfix'> <div class='secondary-actions'>
<h4><%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %> <%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
&middot; &middot;
<%= link_to(t('browse.way.view_history'), :action => "way_history") %> <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
</h4>
</div> </div>

View file

@ -1,6 +1,6 @@
<% <%
@name = printable_name @way @name = printable_name @way
set_title(t('browse.way_history.way_history') + ' | ' + @name) set_title(t('browse.way_history.way_history') + ' | ' + @name)
%> %>
<h2> <h2>
@ -12,8 +12,8 @@ set_title(t('browse.way_history.way_history') + ' | ' + @name)
<%= render :partial => "way_details", :object => way %> <%= render :partial => "way_details", :object => way %>
<% end %> <% end %>
<div class='secondary-actions clearfix'> <div class='secondary-actions'>
<span><%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %> <%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %>
&middot; &middot;
<%= link_to(t('browse.way_history.view_details'), :action => "way") %></span> <%= link_to(t('browse.way_history.view_details'), :action => "way") %>
</div> </div>

View file

@ -13,7 +13,7 @@
%> %>
<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %> <%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
<p class="comment"> <h4>
<a class="changeset_id" href="<%= changeset_path(changeset.id) %>"> <a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
<% if changeset.tags['comment'].to_s != '' %> <% if changeset.tags['comment'].to_s != '' %>
<%= linkify(h(changeset.tags['comment'])) %> <%= linkify(h(changeset.tags['comment'])) %>
@ -21,6 +21,6 @@
<%= t 'changeset.changeset.no_comment' %> <%= t 'changeset.changeset.no_comment' %>
<% end %> <% end %>
</a> </a>
</p> </h4>
<h4><%= changeset_details(changeset) %></h4> <div class="details"><%= changeset_details(changeset) %></div>
<% end %> <% end %>

View file

@ -7,7 +7,7 @@
<%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %> <%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
</div> </div>
<% elsif params[:max_id] %> <% elsif params[:max_id] %>
<h4 class="inner22"><%= t('changeset.list.no_more') %></h4> <div class="inner22"><%= t('changeset.list.no_more') %></div>
<% else %> <% else %>
<h4 class="inner22"><%= t('changeset.list.empty') %></h4> <div class="inner22"><%= t('changeset.list.empty') %></div>
<% end %> <% end %>

View file

@ -1,13 +1,13 @@
<% set_title(t('export.title')) %> <% set_title(t('export.title')) %>
<h2> <h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a> <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
<%= t 'export.start_rjs.export' %> <%= t 'export.start_rjs.export' %>
</h2> </h2>
<%= form_tag :controller => "export", :action => "finish" do %> <%= form_tag({:controller => "export", :action => "finish"}, :class => "export_form") do %>
<%= hidden_field_tag 'format', 'osm' %> <%= hidden_field_tag 'format', 'osm' %>
<div class="export_bounds inner22">
<div class='export_area_inputs'> <div class='export_area_inputs'>
<%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %> <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>
<br/> <br/>
@ -15,16 +15,16 @@
<%= text_field_tag('maxlon', nil, :size => 10, :class => "export_bound") %> <%= text_field_tag('maxlon', nil, :size => 10, :class => "export_bound") %>
<br/> <br/>
<%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %> <%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %>
</div> <br/>
<a id="drag_box" class='export_hint' href="#"><%= t'export.start.manually_select' %></a> <a id='drag_box' href="#"><%= t'export.start.manually_select' %></a>
</div> </div>
<div id="export_osm"> <h4><%= t'export.start.licence' %></h4>
<h4><span class="small-title"><%= t'export.start.licence' %></span><%= raw t'export.start.export_details' %></h4> <p><%= raw t 'export.start.export_details' %></p>
<div id="export_osm_too_large"> <div id="export_osm_too_large">
<div class="export_details"> <h4><%= t'export.start.too_large.heading' %></h4>
<h4><span class="small-title red"><%= t'export.start.too_large.heading' %></span><%= t'export.start.too_large.body' %></h4> <p><%= t'export.start.too_large.body' %></p>
<dl class="inner12"> <dl class="inner12">
<dt><a href="http://planet.openstreetmap.org/"><%= t'export.start.too_large.planet.title' %></a></dt> <dt><a href="http://planet.openstreetmap.org/"><%= t'export.start.too_large.planet.title' %></a></dt>
<dd><%= t'export.start.too_large.planet.description' %></dd> <dd><%= t'export.start.too_large.planet.description' %></dd>
@ -39,10 +39,8 @@
<dd><%= t'export.start.too_large.other.description' %></dd> <dd><%= t'export.start.too_large.other.description' %></dd>
</dl> </dl>
</div> </div>
</div>
</div>
<div class="export_button inner12"> <div class="export_button">
<%= submit_tag t('export.start.export_button'), :id => "export_commit" %> <%= submit_tag t('export.start.export_button'), :id => "export_commit" %>
</div> </div>
<% end %> <% end %>

View file

@ -166,7 +166,7 @@ en:
note: "Edit note" note: "Edit note"
node_details: node_details:
coordinates: "Coordinates:" coordinates: "Coordinates:"
part_of: "Part of:" part_of: "Part of"
node_history: node_history:
node_history: "Node History" node_history: "Node History"
node_history_title: "Node History: %{node_name}" node_history_title: "Node History: %{node_name}"
@ -200,8 +200,8 @@ en:
way: "way" way: "way"
relation: "relation" relation: "relation"
relation_details: relation_details:
members: "Members:" members: "Members"
part_of: "Part of:" part_of: "Part of"
relation_history: relation_history:
relation_history: "Relation History" relation_history: "Relation History"
relation_history_title: "Relation History: %{relation_name}" relation_history_title: "Relation History: %{relation_name}"
@ -264,8 +264,8 @@ en:
tag: "The wiki description page for the %{key}=%{value} tag" tag: "The wiki description page for the %{key}=%{value} tag"
wikipedia_link: "The %{page} article on Wikipedia" wikipedia_link: "The %{page} article on Wikipedia"
way_details: way_details:
nodes: "Nodes:" nodes: "Nodes"
part_of: "Part of:" part_of: "Part of"
also_part_of: also_part_of:
one: "part of way %{related_ways}" one: "part of way %{related_ways}"
other: "part of ways %{related_ways}" other: "part of ways %{related_ways}"