Add expanded class to dashboard resources buttons
This commit is contained in:
@@ -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) %>
|
||||
|
||||
Reference in New Issue
Block a user