Margin-top in particular is best avoided. The removal of some top
margins required a few corresponding changes to add bottom margins
to other features, mostly done by converting bare text strings to
live within paragraphs.
- margin-top: $lineheight;
- margin-bottom: $lineheight/2;
border-bottom: 1px solid $grey;
h4:first-child {
border-bottom: 1px solid $grey;
h4:first-child {
word-wrap: break-word;
}
}
word-wrap: break-word;
}
}
border-collapse: separate;
border-spacing: 0;
width: 100%;
border-collapse: separate;
border-spacing: 0;
width: 100%;
+ margin-bottom: $spacer;
th, td {
border-bottom: 1px solid $grey;
th, td {
border-bottom: 1px solid $grey;
.subscribe-buttons {
float: left;
.subscribe-buttons {
float: left;
- margin: 18px 10px 10px;
- margin-bottom: $lineheight/2;
+ margin-bottom: $spacer;
input[type="text"] {
width: 100px;
text-align: center;
input[type="text"] {
width: 100px;
text-align: center;
<%= 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.#{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 %>
·
<%= t "browse.in_changeset" %>
#<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
<% if @type == "node" and common_details.visible? %>
<div class="details geo">
<% 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>
<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") %>
<%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
<% end %>
<% unless current_user %>
<% end %>
<% unless current_user %>
<%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
<%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
<% end %>
<% if current_user %>
<% unless @changeset.is_open? %>
<% end %>
<% if current_user %>
<% unless @changeset.is_open? %>
+ <form action="#" class="mb-3">
<div class="form-group">
<textarea class="form-control" name="text" cols="40" rows="5"></textarea>
</div>
<div class="form-group">
<textarea class="form-control" name="text" cols="40" rows="5"></textarea>
</div>
</div>
</form>
<% else %>
</div>
</form>
<% else %>
- <div class="notice">
- <%= t(".still_open") %>
- </div>
+ <p class="notice">
+ <%= t(".still_open") %>
+ </p>
assert_select "div#sidebar" do
assert_select "div#sidebar_content" do
assert_select "div" do
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
assert_select "a[href='/login?referer=%2Fchangeset%2F#{changeset.id}']", :text => I18n.t("browse.changeset.join_discussion"), :count => 1
end
end