Merge pull request #4299 from AntonKhorev/no-changeset-action-button-css
Remove subscribe/unsubscribe button custom css
This commit is contained in:
commit
945df0f150
2 changed files with 5 additions and 15 deletions
|
@ -763,12 +763,6 @@ tr.turn:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribe-buttons input {
|
|
||||||
font-size: 90%;
|
|
||||||
line-height: 15px;
|
|
||||||
min-height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.action-button:hover {
|
span.action-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
|
@ -17,15 +17,11 @@
|
||||||
|
|
||||||
<% if current_user %>
|
<% if current_user %>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div class="subscribe-buttons">
|
<% if @changeset.subscribers.exists?(current_user.id) %>
|
||||||
<form action="#">
|
<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>
|
||||||
<% if @changeset.subscribers.exists?(current_user.id) %>
|
<% else %>
|
||||||
<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) %>" />
|
<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>
|
||||||
<% else %>
|
<% end %>
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue