Mercurial > kallithea
comparison rhodecode/templates/index_base.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
This imports changes between changesets 21af6c4eab3d and 6177597791c2 in
RhodeCode's original repository, including only changes to Python files and HTML.
RhodeCode clearly licensed its changes to these files under GPLv3
in their /LICENSE file, which states the following:
The Python code and integrated HTML are licensed under the GPLv3 license.
(See:
https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE
or
http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE
for an online copy of that LICENSE file)
Conservancy reviewed these changes and confirmed that they can be licensed as
a whole to the Kallithea project under GPLv3-only.
While some of the contents committed herein are clearly licensed
GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the
statement above from RhodeCode indicates that they intend GPLv3-only as their
license, per GPLv3ยง14 and other relevant sections of GPLv3.
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:03:13 -0400 |
parents | 5ee04157cadc |
children |
comparison
equal
deleted
inserted
replaced
4115:8b7294a804a0 | 4116:ffd45b185016 |
---|---|
5 <h5> | 5 <h5> |
6 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/> ${parent.breadcrumbs()} <span id="repo_count">0</span> ${_('repositories')} | 6 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/> ${parent.breadcrumbs()} <span id="repo_count">0</span> ${_('repositories')} |
7 </h5> | 7 </h5> |
8 %if c.rhodecode_user.username != 'default': | 8 %if c.rhodecode_user.username != 'default': |
9 <ul class="links"> | 9 <ul class="links"> |
10 %if h.HasPermissionAny('hg.admin','hg.create.repository')() or h.HasReposGroupPermissionAny('group.write', 'group.admin')(c.group.group_name if c.group else None): | 10 <li> |
11 <li> | 11 <% |
12 gr_name = c.group.group_name if c.group else None | |
13 # create repositories with write permission on group is set to true | |
14 create_on_write = h.HasPermissionAny('hg.create.write_on_repogroup.true')() | |
15 group_admin = h.HasRepoGroupPermissionAny('group.admin')(gr_name, 'can write into group index page') | |
16 group_write = h.HasRepoGroupPermissionAny('group.write')(gr_name, 'can write into group index page') | |
17 %> | |
18 %if h.HasPermissionAny('hg.admin','hg.create.repository')() or (group_admin or (group_write and create_on_write)): | |
12 %if c.group: | 19 %if c.group: |
13 <span>${h.link_to(_('Add repository'),h.url('new_repo',parent_group=c.group.group_id))}</span> | 20 <a href="${h.url('new_repo',parent_group=c.group.group_id)}" class="btn btn-small btn-success"><i class="icon-plus"></i> ${_('Add Repository')}</a> |
14 %if h.HasPermissionAny('hg.admin')() or h.HasReposGroupPermissionAny('group.admin')(c.group.group_name): | 21 %if h.HasPermissionAny('hg.admin')() or h.HasRepoGroupPermissionAny('group.admin')(c.group.group_name): |
15 <span>${h.link_to(_(u'Add repository group'),h.url('new_repos_group', parent_group=c.group.group_id))}</span> | 22 <a href="${h.url('new_repos_group', parent_group=c.group.group_id)}" class="btn btn-small"><i class="icon-plus"></i> ${_(u'Add Repository Group')}</a> |
16 %endif | 23 %endif |
17 %else: | 24 %else: |
18 <span>${h.link_to(_('Add repository'),h.url('new_repo'))}</span> | 25 <a href="${h.url('new_repo')}" class="btn btn-small btn-success"><i class="icon-plus"></i> ${_('Add Repository')}</a> |
19 %if h.HasPermissionAny('hg.admin')(): | 26 %if h.HasPermissionAny('hg.admin')(): |
20 <span>${h.link_to(_(u'Add repository group'),h.url('new_repos_group'))}</span> | 27 <a href="${h.url('new_repos_group')}" class="btn btn-small"><i class="icon-plus"></i> ${_(u'Add Repository Group')}</a> |
21 %endif | 28 %endif |
22 %endif | 29 %endif |
23 </li> | |
24 %endif | 30 %endif |
25 %if c.group and h.HasReposGroupPermissionAny('group.admin')(c.group.group_name): | 31 %if c.group and h.HasRepoGroupPermissionAny('group.admin')(c.group.group_name): |
26 <li> | 32 <a href="${h.url('edit_repo_group',group_name=c.group.group_name)}" title="${_('You have admin right to this group, and can edit it')}" class="btn btn-small"><i class="icon-pencil"></i> ${_('Edit Repository Group')}</a> |
27 <span>${h.link_to(_('Edit repository group'),h.url('edit_repos_group',group_name=c.group.group_name), title=_('You have admin right to this group, and can edit it'))}</span> | 33 %endif |
28 </li> | 34 </li> |
29 %endif | |
30 </ul> | 35 </ul> |
31 %endif | 36 %endif |
32 </div> | 37 </div> |
33 <!-- end box / title --> | 38 <!-- end box / title --> |
34 <div class="table"> | 39 <div class="table"> |
35 % if c.groups: | 40 % if c.groups: |
36 <div id='groups_list_wrap' class="yui-skin-sam"> | 41 <div id='groups_list_wrap' class="yui-skin-sam"> |
37 <table id="groups_list"> | 42 <table id="groups_list"> |
38 <thead> | 43 <thead> |
39 <tr> | 44 <tr> |
40 <th class="left"><a href="#">${_('Group name')}</a></th> | 45 <th class="left"><a href="#">${_('Group Name')}</a></th> |
41 <th class="left"><a href="#">${_('Description')}</a></th> | 46 <th class="left"><a href="#">${_('Description')}</a></th> |
42 ##<th class="left"><a href="#">${_('Number of repositories')}</a></th> | 47 ##<th class="left"><a href="#">${_('Number of Repositories')}</a></th> |
43 </tr> | 48 </tr> |
44 </thead> | 49 </thead> |
45 | 50 |
46 ## REPO GROUPS | 51 ## REPO GROUPS |
47 % for gr in c.groups: | 52 % for gr in c.groups: |
48 <tr> | 53 <tr> |
49 <td> | 54 <td> |
50 <div style="white-space: nowrap"> | 55 <div style="white-space: nowrap"> |
51 <img class="icon" alt="${_('Repository group')}" src="${h.url('/images/icons/database_link.png')}"/> | 56 <a href="${url('repos_group_home',group_name=gr.group_name)}"><i class="icon-folder-close"></i> ${gr.name}</a> |
52 ${h.link_to(gr.name,url('repos_group_home',group_name=gr.group_name))} | |
53 </div> | 57 </div> |
54 </td> | 58 </td> |
55 %if c.visual.stylify_metatags: | 59 %if c.visual.stylify_metatags: |
56 <td>${h.urlify_text(h.desc_stylize(gr.group_description))}</td> | 60 <td>${h.urlify_text(h.desc_stylize(gr.group_description))}</td> |
57 %else: | 61 %else: |
89 {key:"raw_name"}, | 93 {key:"raw_name"}, |
90 {key:"name"}, | 94 {key:"name"}, |
91 {key:"desc"}, | 95 {key:"desc"}, |
92 {key:"last_change"}, | 96 {key:"last_change"}, |
93 {key:"last_changeset"}, | 97 {key:"last_changeset"}, |
98 {key:"last_rev_raw"}, | |
94 {key:"owner"}, | 99 {key:"owner"}, |
95 {key:"atom"}, | 100 {key:"atom"}, |
96 ] | 101 ] |
97 }; | 102 }; |
98 myDataSource.doBeforeCallback = function(req,raw,res,cb) { | 103 myDataSource.doBeforeCallback = function(req,raw,res,cb) { |