Display correcty link for resources with request_to_administrator: false
Fix: When a resource not need request_for_administrator always show text "request_resource" when the correct text is "view_resource".
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="small-12 column small-centered margin-top">
|
<div class="small-12 column small-centered margin-top">
|
||||||
<% if resource.executed_for?(proposal) %>
|
<% if resource.executed_for?(proposal) || (!resource.request_to_administrators && resource.active_for?(proposal)) %>
|
||||||
<%= link_to t("dashboard.resource.view_resource"),
|
<%= link_to t("dashboard.resource.view_resource"),
|
||||||
new_request_proposal_dashboard_action_path(proposal, resource),
|
new_request_proposal_dashboard_action_path(proposal, resource),
|
||||||
class: "button" %>
|
class: "button" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user