repos.html
62 lines
| 2.0 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
|
r4116 | ${_('Repositories administration')} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
r3665 | <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/> ${h.link_to(_('Admin'),h.url('admin_home'))} » <span id="repo_count">0</span> ${_('repositories')} | |||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
|
r3197 | ${self.menu('admin')} | ||
r547 | </%def> | |||
<%def name="main()"> | ||||
<div class="box"> | ||||
r1779 | ||||
r547 | <div class="title"> | |||
${self.breadcrumbs()} | ||||
<ul class="links"> | ||||
r3936 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |||
r547 | <li> | |||
|
r4116 | <a href="${h.url('new_repo')}" class="btn btn-small btn-success"><i class="icon-plus"></i> ${_(u'Add Repository')}</a> | ||
r1888 | </li> | |||
r3936 | %endif | |||
r1888 | </ul> | |||
r547 | </div> | |||
|
r4116 | <div class="table-grid table yui-skin-sam" id="datatable_list_wrap"></div> | ||
r2664 | <div id="user-paginator" style="padding: 0px 0px 0px 20px"></div> | |||
r2673 | ||||
r1888 | ||||
</div> | ||||
r1779 | <script> | |||
r2664 | var data = ${c.data|n}; | |||
|
r4116 | var fields = [ | ||
{key:"menu"}, | ||||
{key:"raw_name"}, | ||||
{key:"name"}, | ||||
{key:"desc"}, | ||||
{key:"last_changeset"}, | ||||
{key:"last_rev_raw"}, | ||||
{key:"owner"}, | ||||
{key:"state"}, | ||||
{key:"action"}, | ||||
r1779 | ]; | |||
|
r4116 | var column_defs = [ | ||
{key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"}, | ||||
{key:"name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }}, | ||||
{key:"desc",label:"${_('Description')}",sortable:true}, | ||||
{key:"last_changeset",label:"${_('Tip')}",sortable:true, sortOptions: { sortFunction: revisionSort }}, | ||||
{key:"owner",label:"${_('Owner')}",sortable:true}, | ||||
{key:"state",label:"${_('State')}",sortable:true}, | ||||
{key:"action",label:"${_('Action')}",sortable:false}, | ||||
]; | ||||
var counter = YUD.get('repo_count'); | ||||
var sort_key = "name"; | ||||
YUI_datatable(data, fields, column_defs, counter, sort_key, ${c.visual.admin_grid_items}); | ||||
r1888 | </script> | |||
r2664 | ||||
r1888 | </%def> | |||