##// END OF EJS Templates
artifacts: refactor metadata code...
artifacts: refactor metadata code - fix type conversions - split some code so we can re-use it - add specific validations of duplicates and wrong types

File last commit:

r3113:d517813a default
r3997:823cbf31 default
Show More
settings_email.mako
54 lines | 1.9 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Email Configuration')}</h3>
</div>
<div class="panel-body">
<%
elems = [
(_('Email prefix'), c.rhodecode_ini.get('email_prefix'), ''),
mailing: switched from homebrew lib to pyramid_mailer with python3 compatability
r3113 (_('Email from'), c.rhodecode_ini.get('app_email_from'), ''),
templating: use .mako as extensions for template files.
r1282
(_('SMTP server'), c.rhodecode_ini.get('smtp_server'), ''),
(_('SMTP username'), c.rhodecode_ini.get('smtp_username'), ''),
(_('SMTP password'), '%s chars' % len(c.rhodecode_ini.get('smtp_password', '')), ''),
(_('SMTP port'), c.rhodecode_ini.get('smtp_port'), ''),
(_('SMTP use TLS'), c.rhodecode_ini.get('smtp_use_tls'), ''),
(_('SMTP use SSL'), c.rhodecode_ini.get('smtp_use_ssl'), ''),
mailing: switched from homebrew lib to pyramid_mailer with python3 compatability
r3113
templating: use .mako as extensions for template files.
r1282 ]
%>
sessions: added interface to show, and cleanup user auth sessions.
r1295 <dl class="dl-horizontal settings">
templating: use .mako as extensions for template files.
r1282 %for dt, dd, tt in elems:
<dt >${dt}:</dt>
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <dd title="${h.tooltip(tt)}">${dd}</dd>
templating: use .mako as extensions for template files.
r1282 %endfor
</dl>
email: added help block on where to change email settings
r2725 <span class="help-block">
${_('You can adjust those settings in [DEFAULT] section of .ini file located at')}: <br/>
${c.rhodecode_ini.get('__file__')}
</span>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Test Email')}</h3>
</div>
<div class="panel-body">
admin: ported settings controller to pyramid....
r2333 ${h.secure_form(h.route_path('admin_settings_email_update'), request=request)}
templating: use .mako as extensions for template files.
r1282
<div class="field input">
${h.text('test_email', size=60, placeholder=_('enter valid email'))}
</div>
<div class="field">
<span class="help-block">
${_('Send an auto-generated email from this server to above email...')}
</span>
</div>
<div class="buttons">
${h.submit('send',_('Send'),class_="btn")}
</div>
${h.end_form()}
</div>
</div>