aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-01-05 17:54:48 +0000
committerLouise Crow <louise.crow@gmail.com>2015-04-28 09:07:16 +0100
commit203d35713262ecfec4dfd44c3b080edcd3760750 (patch)
treebfcb2c145bdb8088d661508bef1a13d8fbb1b480
parent61faadbac1b4a71148248382425beb4368cb4cb0 (diff)
Add link to create widget if widgets are enabled.
-rw-r--r--app/views/request/_act.html.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/request/_act.html.erb b/app/views/request/_act.html.erb
index 878cdf4ff..c7bbd287f 100644
--- a/app/views/request/_act.html.erb
+++ b/app/views/request/_act.html.erb
@@ -20,3 +20,8 @@
<% end %>
<%= link_to _("Start your own blog"), "http://wordpress.com/"%>
</div>
+<% if AlaveteliConfiguration::enable_widgets %>
+ <div class="act_link">
+ <%= link_to _("Create a widget for this request"), new_request_widget_path(@info_request) %>
+ </div>
+<% end %>