@@ -22,12 +22,23 @@ from webhelpers.pylonslib import Flash a
from webhelpers.pylonslib.secure_form import secure_form
from webhelpers.text import chop_at, collapse, convert_accented_entities, \
convert_misc_entities, lchop, plural, rchop, remove_formatting, \
replace_whitespace, urlify, truncate, wrap_paragraphs
from webhelpers.date import time_ago_in_words
from webhelpers.html.tags import _set_input_attrs, _set_id_attr, \
convert_boolean_attrs, NotGiven
def _reset(name, value=None, id=NotGiven, type="reset", **attrs):
_set_input_attrs(attrs, type, name, value)
_set_id_attr(attrs, id, name)
convert_boolean_attrs(attrs, ["disabled"])
return HTML.input(**attrs)
reset = _reset
#Custom helpers here :)
class _Link(object):
'''
Make a url based on label and url with help of url_for
:param label:name of link if not defined url is used
:param url: the url for link
@@ -146,13 +146,14 @@
</td>
</tr>
</table>
</div>
<div class="buttons">
${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.end_form()}
<script type="text/javascript">
@@ -39,13 +39,13 @@
${_('destroy old data')}</span> </label>
${h.submit('rescan','rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.submit('rescan','Rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")}
<h3>${_('Whoosh indexing')}</h3>
@@ -64,13 +64,13 @@
<label for="checkbox-1">${_('build from scratch')}</label>
${h.submit('reindex','reindex',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.submit('reindex','Reindex',class_="ui-button ui-widget ui-state-default ui-corner-all")}
<h3>${_('Global application settings')}</h3>
@@ -96,13 +96,14 @@
<div class="input">
${h.text('rhodecode_realm',size=30)}
${h.submit('save','save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.submit('save','Save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")}
<h3>${_('Mercurial settings')}</h3>
@@ -158,13 +159,14 @@
tooltip_title="${h.tooltip(_('This a crucial application setting. If You really sure you need to change this, you must restart application in order to make this settings take effect. Click this label to unlock.'))}">
${_('unlock')}</span>
@@ -98,13 +98,14 @@
<div class="checkboxes">
${h.checkbox('admin',value=True)}
</%def>
\ No newline at end of file
@@ -68,13 +68,17 @@
${h.text('email')}
@@ -125,13 +125,14 @@
${h.submit('update','update',class_="ui-button ui-widget ui-state-default ui-corner-all")}
${h.submit('update','Update',class_="ui-button ui-widget ui-state-default ui-corner-all")}
YAHOO.util.Event.onDOMReady(function(){
Status change: