Skip to content

Commit

Permalink
Merge pull request openstreetmap#4299 from AntonKhorev/no-changeset-a…
Browse files Browse the repository at this point in the history
…ction-button-css

Remove subscribe/unsubscribe button custom css
  • Loading branch information
gravitystorm authored Oct 18, 2023
2 parents 5933ade + 5e07926 commit 945df0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
6 changes: 0 additions & 6 deletions app/assets/stylesheets/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,6 @@ tr.turn:hover {
}
}

.subscribe-buttons input {
font-size: 90%;
line-height: 15px;
min-height: 20px;
}

span.action-button:hover {
cursor: pointer;
text-decoration: underline;
Expand Down
14 changes: 5 additions & 9 deletions app/views/browse/changeset.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@

<% if current_user %>
<div class="col-auto">
<div class="subscribe-buttons">
<form action="#">
<% if @changeset.subscribers.exists?(current_user.id) %>
<input class="action-button btn btn-sm btn-primary" type="submit" name="unsubscribe" value="<%= t("javascripts.changesets.show.unsubscribe") %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
<% else %>
<input class="action-button btn btn-sm btn-primary" type="submit" name="subscribe" value="<%= t("javascripts.changesets.show.subscribe") %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
<% end %>
</form>
</div>
<% if @changeset.subscribers.exists?(current_user.id) %>
<button class="action-button btn btn-sm btn-primary" name="unsubscribe" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>"><%= t("javascripts.changesets.show.unsubscribe") %></button>
<% else %>
<button class="action-button btn btn-sm btn-primary" name="subscribe" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>"><%= t("javascripts.changesets.show.subscribe") %></button>
<% end %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit 945df0f

Please sign in to comment.