##// END OF EJS Templates
fix(users): fixed password mismatch error message beeing wrongly displayed when creating new users
fix(users): fixed password mismatch error message beeing wrongly displayed when creating new users

File last commit:

r5044:4c5924a0 default
r5210:a4612633 default
Show More
gist_show.mako
112 lines | 4.9 KiB | application/x-mako | MakoHtmlLexer
gists: updated template names and synced edit with create template.
r3870 <%inherit file="/base/base.mako"/>
gists: updated styling on gists pages according to the design.
r4082 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
gists: updated template names and synced edit with create template.
r3870
<%def name="robots()">
%if c.gist.gist_type != 'public':
<meta name="robots" content="noindex, nofollow">
%else:
${parent.robots()}
%endif
</%def>
<%def name="title()">
${_('Gist')} &middot; ${c.gist.gist_access_id}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="breadcrumbs_links()">
${_('Gist')} &middot; ${c.gist.gist_access_id}
</%def>
<%def name="menu_bar_nav()">
${self.menu_items(active='gists')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="table">
<div id="files_data">
<div id="codeblock" class="codeblock">
<div class="code-header">
<div class="gist_url">
gists: updated styling on gists pages according to the design.
r4082 <div class="pull-left">
<code>
${dt.gist_type(c.gist.gist_type)}
<span class="tag disabled">${c.gist.gist_access_id}</span>
gists: updated template names and synced edit with create template.
r3870 ${c.gist.gist_url()} <span class="icon-clipboard clipboard-action" data-clipboard-text="${c.gist.gist_url()}" title="${_('Copy the url')}"></span>
gists: updated styling on gists pages according to the design.
r4082 </code>
gists: updated template names and synced edit with create template.
r3870 </div>
gists: updated styling on gists pages according to the design.
r4082
<div class="pull-right buttons">
gists: updated template names and synced edit with create template.
r3870 ## only owner should see that
ui: make copy content actions not use grey....
r4100 <a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard no-grey clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy content')}</a>
gists: updated template names and synced edit with create template.
r3870
%if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
gists: updated styling on gists pages according to the design.
r4082 ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
gists: updated template names and synced edit with create template.
r3870 %endif
${h.link_to(_('Show as Raw'), h.route_path('gist_show_formatted', gist_id=c.gist.gist_access_id, revision='tip', format='raw'), class_="btn btn-mini")}
gists: updated styling on gists pages according to the design.
r4082
%if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
<div class="pull-right remove_gist">
${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), request=request)}
templates: switched most of confirm dialogs to sweetalert2
r4313 <input class="btn btn-mini btn-danger" id="remove_gist" name="remove_gist"
onclick="submitConfirm(event, this, _gettext('Confirm to delete this gist'), _gettext('Delete'), '${c.gist.gist_access_id}')"
type="submit" value="${_('Delete')}"
>
gists: updated styling on gists pages according to the design.
r4082 ${h.end_form()}
</div>
%endif
gists: updated template names and synced edit with create template.
r3870 </div>
gists: updated styling on gists pages according to the design.
r4082 </div>
<div class="gist-desc">
<code>${c.gist.gist_description}</code>
</div>
<div class="author">
<div title="${h.tooltip(c.file_last_commit.author)}">
${self.gravatar_with_user(c.file_last_commit.author, 16, tooltip=True)} - ${_('created')} ${h.age_component(c.file_last_commit.date)},
${_('expires')}:
gists: updated template names and synced edit with create template.
r3870 %if c.gist.gist_expires == -1:
${_('never')}
%else:
${h.age_component(h.time_to_utcdatetime(c.gist.gist_expires))}
%endif
</span>
</div>
</div>
<div class="commit">${h.urlify_commit_message(c.file_last_commit.message, None)}</div>
</div>
## iterate over the files
gists: updated styling on gists pages according to the design.
r4082 % for gist_file in c.files:
<% renderer = c.render and h.renderer_from_filename(gist_file.path, exclude=['.txt', '.TXT'])%>
gists: updated template names and synced edit with create template.
r3870 <!--
gists: updated styling on gists pages according to the design.
r4082 <div id="${h.FID('G', gist_file.path)}" class="stats" >
gists: updated template names and synced edit with create template.
r3870 <a href="${c.gist.gist_url()}">ΒΆ</a>
gists: updated styling on gists pages according to the design.
r4082 <b >${gist_file.path}</b>
gists: updated template names and synced edit with create template.
r3870 <div>
gists: updated styling on gists pages according to the design.
r4082 ${h.link_to(_('Show as raw'), h.route_path('gist_show_formatted_path', gist_id=c.gist.gist_access_id, revision=gist_file.commit.raw_id, format='raw', f_path=gist_file.path), class_="btn btn-mini")}
gists: updated template names and synced edit with create template.
r3870 </div>
</div>
-->
<div class="code-body textarea text-area editor">
%if renderer:
templates: use string content when possible
r5044 ${h.render(gist_file.str_content, renderer=renderer)}
gists: updated template names and synced edit with create template.
r3870 %else:
gists: updated styling on gists pages according to the design.
r4082 ${h.pygmentize(gist_file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
gists: updated template names and synced edit with create template.
r3870 %endif
</div>
%endfor
</div>
</div>
</div>
</div>
</%def>