aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-11-19 17:45:59 +0100
committerAlex Legler <a3li@gentoo.org>2011-11-19 17:45:59 +0100
commitdbd12fcb9d03e64e364124eeb55085a6809422e0 (patch)
tree575ad25bec3788631a61f4b7a4af414c7a244945
parentDrop secret_token.rb, set it in the local glsamaker config (diff)
downloadglsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.tar.gz
glsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.tar.bz2
glsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.zip
Enable templates for the title field
-rw-r--r--app/views/glsa/edit.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/glsa/edit.html.erb b/app/views/glsa/edit.html.erb
index 100e4ff..3d5b801 100644
--- a/app/views/glsa/edit.html.erb
+++ b/app/views/glsa/edit.html.erb
@@ -54,7 +54,8 @@
<div id="left">
<div class="box">
- <%= box_title('Title', :icon => 'icons/title.png', :label => 'title') %>
+ <%= box_title('Title', :icon => 'icons/title.png',
+ :toolbar => [{:title => 'Add template', :uri => "javascript:GLSAMaker.editing.templates.dropdown(this, 'title');", :icon => 'icons/template.png'}]) %>
<p><textarea name="glsa[title]" id="title" class="largetext nice" rows="1"><%= lastrev_content(@glsa, 'title') %></textarea></p>
</div>
@@ -166,6 +167,7 @@
<%= template_popups %>
<script language="JavaScript" type="text/javascript">
+ GLSAMaker.editing.templates.observeClick($('title'));
GLSAMaker.editing.templates.observeClick($('synopsis'));
GLSAMaker.editing.templates.observeClick($('description'));
GLSAMaker.editing.templates.observeClick($('impact'));