}
h3, h4 {
- margin-top: $lineheight;
- margin-bottom: $lineheight/2;
font-size: 1.25rem;
}
border-bottom: 1px solid $grey;
h4:first-child {
- margin-top: 0;
word-wrap: break-word;
}
}
border-collapse: separate;
border-spacing: 0;
width: 100%;
+ margin-bottom: $spacer;
th, td {
border-bottom: 1px solid $grey;
.subscribe-buttons {
float: left;
- margin: 18px 10px 10px;
+ margin: 0 10px;
min-width: 80px;
}
}
.export_area_inputs {
- margin-bottom: $lineheight/2;
+ margin-bottom: $spacer;
input[type="text"] {
width: 100px;
text-align: center;
}
}
-/* Rules for the user profile page */
-
-.contact-activity {
- margin-top: $lineheight;
- width: 100%;
-}
-
/* Rules for the user map */
.content_map .leaflet-popup-content {
#user_list {
width: 100%;
-
- tr {
- vertical-align: middle;
- }
-
- p {
- margin-top: 0px;
- margin-bottom: 0px;
- }
-}
-
-#user_list_actions {
- float: right;
- margin-top: $lineheight/2;
}
/* Rules for the diary list page */
<% end %>
</p>
-<div class="details">
+<p class="details">
<%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html",
:time => time_ago_in_words(common_details.timestamp, :scope => :"datetime.distance_in_words_ago"),
:user => changeset_user_link(common_details.changeset),
·
<%= t "browse.in_changeset" %>
#<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
-</div>
+</p>
<% if @type == "node" and common_details.visible? %>
<div class="details geo">
<p class="font-italic">
<%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
</p>
- <div class="details"><%= changeset_details(@changeset) %></div>
+ <p class="details"><%= changeset_details(@changeset) %></p>
<%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
<% end %>
<% unless current_user %>
- <div class="notice">
+ <p class="notice">
<%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
- </div>
+ </p>
<% end %>
<% if current_user %>
<% unless @changeset.is_open? %>
- <form action="#">
+ <form action="#" class="mb-3">
<div class="form-group">
<textarea class="form-control" name="text" cols="40" rows="5"></textarea>
</div>
</div>
</form>
<% else %>
- <div class="notice">
- <%= t(".still_open") %>
- </div>
+ <p class="notice">
+ <%= t(".still_open") %>
+ </p>
<% end %>
<% end %>
:icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
:description => render(:partial => "popup", :object => contact, :locals => { :type => type })
} %>
-<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %>
+<%= tag.div :class => "clearfix row", :data => { :user => user_data } do %>
<div class="col-auto">
<%= user_thumbnail contact %>
</div>
<% if friends.empty? %>
<%= t ".no friends" %>
<% else %>
- <nav class='secondary-actions'>
+ <nav class='secondary-actions mb-3'>
<ul class='clearfix'>
<li><%= link_to t(".friends_changesets"), friend_changesets_path %></li>
<li><%= link_to t(".friends_diaries"), friends_diary_entries_path %></li>
<% if nearby.empty? %>
<%= t ".no nearby users" %>
<% else %>
- <nav class='secondary-actions'>
+ <nav class='secondary-actions mb-3'>
<ul class='clearfix'>
<li><%= link_to t(".nearby_changesets"), nearby_changesets_path %></li>
<li><%= link_to t(".nearby_diaries"), nearby_diary_entries_path %></li>
-<% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %>
+<% content_for :head, tag.meta(:name => :robots, :content => :noindex) %>
<% content_for :heading do %>
<div <% if @user %> id="userinformation"<% end %> class="row">
<% if @user %>
<%= favicon_link_tag "favicon-96x96.png", :rel => "icon", :sizes => "96x96", :type => "image/png" %>
<%= favicon_link_tag "android-chrome-192x192.png", :rel => "icon", :sizes => "192x192", :type => "image/png" %>
<%= favicon_link_tag "favicon-16x16.png", :rel => "icon", :sizes => "16x16", :type => "image/png" %>
-<%= tag("link", :rel => "mask-icon", :href => asset_path("tab-icon.svg"), :color => "#7ebc6f") %>
-<%= tag("link", :rel => "manifest", :href => asset_path("manifest.json")) %>
-<%= tag("meta", :name => "msapplication-config", :content => asset_path("browserconfig.xml")) %>
-<%= tag("meta", :name => "msapplication-TileColor", :content => "#00a300") %>
-<%= tag("meta", :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png")) %>
-<%= tag("meta", :name => "theme-color", :content => "#ffffff") %>
+<%= tag.link :rel => "mask-icon", :href => asset_path("tab-icon.svg"), :color => "#7ebc6f" %>
+<%= tag.link :rel => "manifest", :href => asset_path("manifest.json") %>
+<%= tag.meta :name => "msapplication-config", :content => asset_path("browserconfig.xml") %>
+<%= tag.meta :name => "msapplication-TileColor", :content => "#00a300" %>
+<%= tag.meta :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png") %>
+<%= tag.meta :name => "theme-color", :content => "#ffffff" %>
<%= canonical_tag %>
<% if Settings.key?(:publisher_url) -%>
-<%= tag("link", :rel => "publisher", :href => Settings.publisher_url) %>
+<%= tag.link :rel => "publisher", :href => Settings.publisher_url %>
<% end -%>
-<%= tag("link", :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml")) %>
-<%= tag("meta", :name => "description", :content => "OpenStreetMap is the free wiki world map.") %>
+<%= tag.link :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") %>
+<%= tag.meta :name => "description", :content => "OpenStreetMap is the free wiki world map." %>
<%= opengraph_tags(@title) %>
<% if flash[:piwik_goal] -%>
-<%= tag("meta", :name => "piwik-goal", :content => flash[:piwik_goal]) %>
+<%= tag.meta :name => "piwik-goal", :content => flash[:piwik_goal] %>
<% end -%>
<% content_for :footer do %>
<p><%= t ".footer_html",
- :readurl => link_to(@readurl, @readurl) + tag(:br),
- :commenturl => link_to(@commenturl, @commenturl) + tag(:br),
+ :readurl => link_to(@readurl, @readurl) + tag.br,
+ :commenturl => link_to(@commenturl, @commenturl) + tag.br,
:replyurl => link_to(@replyurl, @replyurl) %>
</p>
<% end %>
<% content_for :footer do %>
<p>
<%= t ".footer_html",
- :readurl => link_to(@readurl, @readurl) + tag(:br),
+ :readurl => link_to(@readurl, @readurl) + tag.br,
:replyurl => link_to(@replyurl, @replyurl) %>
</p>
<% end %>
<%= render @users %>
</table>
- <div id="user_list_actions buttons">
- <%= submit_tag t(".confirm"), :name => "confirm" %>
- <%= submit_tag t(".hide"), :name => "hide" %>
+ <div>
+ <%= submit_tag t(".confirm"), :name => "confirm", :class => "btn btn-primary" %>
+ <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-primary" %>
</div>
<% end %>
<% else %>
# Friends should be visible as we're now logged in
assert_select "div#friends-container" do
- assert_select "div.contact-activity", :count => 1
+ assert_select "div" do
+ assert_select "a[href='/user/#{ERB::Util.u(friend_user.display_name)}']", :count => 1
+ end
end
end
end
assert_select "div#sidebar" do
assert_select "div#sidebar_content" do
assert_select "div" do
- assert_select "div.notice" do
+ assert_select "p.notice" do
assert_select "a[href='/login?referer=%2Fchangeset%2F#{changeset.id}']", :text => I18n.t("browse.changeset.join_discussion"), :count => 1
end
end