In general, we always use relative URLs (using `_path`), but sometimes we were accidentally using absolute URLs (using `_url`). It's been reported i might cause some isuses if accepting both HTTP and HTTPS connections, although we've never seen the case. In any case, this change makes the code more consistent and makes the generated HTML cleaner.
19 lines
668 B
Plaintext
19 lines
668 B
Plaintext
<% if dashboard_action.requested_for?(proposal) %>
|
|
<div class="callout success">
|
|
<strong><%= t("dashboard.create_request.success") %></strong>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if proposal.archived? %>
|
|
<div class="callout primary">
|
|
<p><%= t("dashboard.create_request.archived") %></p>
|
|
</div>
|
|
<% else %>
|
|
<% if dashboard_action.request_to_administrators && !dashboard_action.requested_for?(proposal) %>
|
|
<%= form_for @dashboard_executed_action,
|
|
url: create_request_proposal_dashboard_action_path(proposal, dashboard_action) do |f| %>
|
|
<%= f.submit(class: "button", value: t("dashboard.form.request")) %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|