##// END OF EJS Templates
descriptions: show mention of metatags only if they are enabled.
bart -
r4241:7bc9363b stable
parent child Browse files
Show More
@@ -55,7 +55,13 b''
55 <div class="textarea editor">
55 <div class="textarea editor">
56 ${h.textarea('group_description',cols=23,rows=5,class_="medium")}
56 ${h.textarea('group_description',cols=23,rows=5,class_="medium")}
57 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
57 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
58 <span class="help-block">${_('Plain text format with support of {metatags}').format(metatags=metatags_url)|n}</span>
58 <span class="help-block">
59 % if c.visual.stylify_metatags:
60 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
61 % else:
62 ${_('Plain text format.')}
63 % endif
64 </span>
59 <span id="meta-tags-desc" style="display: none">
65 <span id="meta-tags-desc" style="display: none">
60 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
66 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
61 ${dt.metatags_help()}
67 ${dt.metatags_help()}
@@ -59,7 +59,13 b''
59 ${c.form.render_error(request, c.form['repo_group_description'])|n}
59 ${c.form.render_error(request, c.form['repo_group_description'])|n}
60
60
61 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
61 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
62 <span class="help-block">${_('Plain text format with support of {metatags}').format(metatags=metatags_url)|n}</span>
62 <span class="help-block">
63 % if c.visual.stylify_metatags:
64 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
65 % else:
66 ${_('Plain text format.')}
67 % endif
68 </span>
63 <span id="meta-tags-desc" style="display: none">
69 <span id="meta-tags-desc" style="display: none">
64 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
70 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
65 ${dt.metatags_help()}
71 ${dt.metatags_help()}
@@ -68,7 +68,14 b''
68 <div class="textarea editor">
68 <div class="textarea editor">
69 ${h.textarea('repo_description',cols=23,rows=5,class_="medium")}
69 ${h.textarea('repo_description',cols=23,rows=5,class_="medium")}
70 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
70 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
71 <span class="help-block">${_('Plain text format with support of {metatags}. Add a README file for longer descriptions').format(metatags=metatags_url)|n}</span>
71 <span class="help-block">
72 % if c.visual.stylify_metatags:
73 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
74 % else:
75 ${_('Plain text format.')}
76 % endif
77 ${_('Add a README file for longer descriptions')}
78 </span>
72 <span id="meta-tags-desc" style="display: none">
79 <span id="meta-tags-desc" style="display: none">
73 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
80 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
74 ${dt.metatags_help()}
81 ${dt.metatags_help()}
@@ -174,7 +174,14 b''
174 ${c.form.render_error(request, c.form['repo_description'])|n}
174 ${c.form.render_error(request, c.form['repo_description'])|n}
175
175
176 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
176 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
177 <span class="help-block">${_('Plain text format with support of {metatags}. Add a README file for longer descriptions').format(metatags=metatags_url)|n}</span>
177 <span class="help-block">
178 % if c.visual.stylify_metatags:
179 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
180 % else:
181 ${_('Plain text format.')}
182 % endif
183 ${_('Add a README file for longer descriptions')}
184 </span>
178 <span id="meta-tags-desc" style="display: none">
185 <span id="meta-tags-desc" style="display: none">
179 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
186 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
180 ${dt.metatags_help()}
187 ${dt.metatags_help()}
@@ -76,7 +76,13 b''
76 <div class="input textarea editor">
76 <div class="input textarea editor">
77 ${h.textarea('description', rows=10, class_="medium")}
77 ${h.textarea('description', rows=10, class_="medium")}
78 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
78 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
79 <span class="help-block">${_('Plain text format with support of {metatags}.').format(metatags=metatags_url)|n}</span>
79 <span class="help-block">
80 % if c.visual.stylify_metatags:
81 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
82 % else:
83 ${_('Plain text format.')}
84 % endif
85 </span>
80 <span id="meta-tags-desc" style="display: none">
86 <span id="meta-tags-desc" style="display: none">
81 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
87 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
82 ${dt.metatags_help()}
88 ${dt.metatags_help()}
@@ -58,7 +58,14 b''
58 <div class="textarea editor">
58 <div class="textarea editor">
59 ${h.textarea('description',cols=23,rows=5,class_="medium")}
59 ${h.textarea('description',cols=23,rows=5,class_="medium")}
60 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
60 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
61 <span class="help-block">${_('Plain text format with support of {metatags}. Add a README file for longer descriptions').format(metatags=metatags_url)|n}</span>
61 <span class="help-block">
62 % if c.visual.stylify_metatags:
63 ${_('Plain text format with {metatags} support.').format(metatags=metatags_url)|n}
64 % else:
65 ${_('Plain text format.')}
66 % endif
67 ${_('Add a README file for longer descriptions')}
68 </span>
62 <span id="meta-tags-desc" style="display: none">
69 <span id="meta-tags-desc" style="display: none">
63 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
70 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
64 ${dt.metatags_help()}
71 ${dt.metatags_help()}
General Comments 0
You need to be logged in to leave comments. Login now