Add expanded class to dashboard resources buttons

This commit is contained in:
decabeza
2019-04-11 12:21:05 +02:00
parent 19c158f4eb
commit 41e692737b

View File

@@ -14,13 +14,13 @@
<% if resource.executed_for?(proposal) || (!resource.request_to_administrators && resource.active_for?(proposal)) %>
<%= link_to t("dashboard.resource.view_resource"),
new_request_proposal_dashboard_action_path(proposal, resource),
class: "button" %>
class: "button expanded" %>
<% elsif resource.requested_for?(proposal) %>
<strong><%= t("dashboard.resource.resource_requested") %></strong>
<% elsif resource.active_for?(proposal) %>
<%= link_to t("dashboard.resource.request_resource"),
new_request_proposal_dashboard_action_path(proposal, resource),
class: "button" %>
class: "button expanded" %>
<% else %>
<strong>
<%== resoure_availability_label(resource) %>