Mercurial > kallithea
annotate kallithea/templates/summary/summary.html @ 4196:06e49be38d78 kallithea-2.2.5-rebrand
Rename rhodecode_repo to db_repo_scm_instance
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:05:00 -0400 |
parents | 9581233e9275 |
children | d208416c84c6 |
rev | line source |
---|---|
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
126
diff
changeset
|
1 <%inherit file="/base/base.html"/> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
2 |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
3 <%def name="title()"> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
4 ${_('%s Summary') % c.repo_name} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
5 %if c.rhodecode_name: |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
6 · ${c.rhodecode_name} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
7 %endif |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
8 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
9 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
10 <%def name="breadcrumbs_links()"> |
3532 | 11 ${_('Summary')} |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
12 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
13 ## locking icon |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
14 %if c.db_repo.enable_locking: |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
15 %if c.db_repo.locked[0]: |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
16 <span class="locking_locked tooltip" title="${_('Repository locked by %s') % h.person_by_id(c.db_repo.locked[0])}"></span> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
17 %else: |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
18 <span class="locking_unlocked tooltip" title="${_('Repository unlocked')}"></span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
19 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
20 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
21 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
22 ##FORK |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
23 %if c.db_repo.fork: |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
24 <span> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
25 - <i class="icon-code-fork"></i> ${_('Fork of')} "<a href="${h.url('summary_home',repo_name=c.db_repo.fork.repo_name)}">${c.db_repo.fork.repo_name}</a>" |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
26 </span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
27 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
28 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
29 ##REMOTE |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
30 %if c.db_repo.clone_uri: |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
31 <span> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
32 - <i class="icon-code-fork"></i> ${_('Clone from')} "<a href="${h.url(str(h.hide_credentials(c.db_repo.clone_uri)))}">${h.hide_credentials(c.db_repo.clone_uri)}</a>" |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
33 <span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
34 %endif |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
35 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
36 |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
37 <%def name="page_nav()"> |
3603
eacd33e0c5b3
use valid options for the top menu: repositories, journal, search and admin
Mads Kiilerich <madski@unity3d.com>
parents:
3587
diff
changeset
|
38 ${self.menu('repositories')} |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
39 </%def> |
219
64e1125fc479
html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents:
210
diff
changeset
|
40 |
2413
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2366
diff
changeset
|
41 <%def name="head_extra()"> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
42 <link href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
43 <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> |
3655
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
44 |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
45 <script> |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
46 redirect_hash_branch = function(){ |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
47 var branch = window.location.hash.replace(/^#(.*)/, '$1'); |
3656 | 48 if (branch){ |
49 window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}" | |
50 .replace('__BRANCH__',branch); | |
51 } | |
3655
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
52 } |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
53 redirect_hash_branch(); |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
54 window.onhashchange = function() { |
3656 | 55 redirect_hash_branch(); |
3655
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
56 }; |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
57 </script> |
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
58 |
2413
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2366
diff
changeset
|
59 </%def> |
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2366
diff
changeset
|
60 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
61 <%def name="main()"> |
3988
072a37c44f58
templates: drop context_bar, use repo_context_bar directly
Mads Kiilerich <madski@unity3d.com>
parents:
3960
diff
changeset
|
62 ${self.repo_context_bar('summary')} |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
63 <% |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
64 summary = lambda n:{False:'summary-short'}.get(n) |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
65 %> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
66 <div class="box"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
67 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
68 <div class="title"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
69 ${self.breadcrumbs()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
70 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
71 <!-- end box / title --> |
3197 | 72 <div class="form"> |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
73 <div id="summary" class="fields"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
74 <div class="field"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
75 <div class="label-summary"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
76 <label>${_('Clone url')}:</label> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
77 </div> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
78 <div class="input ${summary(c.show_stats)}"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
79 <input style="width:80%" type="text" id="clone_url" readonly="readonly" value="${c.clone_repo_url}"/> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
80 <input style="display:none;width:80%" type="text" id="clone_url_id" readonly="readonly" value="${c.clone_repo_url_id}"/> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
81 <div style="display:none" id="clone_by_name" class="btn btn-small clone">${_('Show by Name')}</div> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
82 <div id="clone_by_id" class="btn btn-small clone">${_('Show by ID')}</div> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
83 </div> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
84 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
85 |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
86 <div class="field"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
87 <div class="label-summary"> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
88 <label>${_('Description')}:</label> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
89 </div> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
90 %if c.visual.stylify_metatags: |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
91 <div class="input ${summary(c.show_stats)} desc">${h.urlify_text(h.desc_stylize(c.db_repo.description))}</div> |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
92 %else: |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
93 <div class="input ${summary(c.show_stats)} desc">${h.urlify_text(c.db_repo.description)}</div> |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
94 %endif |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
95 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
96 |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
97 <div class="field"> |
3197 | 98 <div class="label-summary"> |
99 <label>${_('Trending files')}:</label> | |
100 </div> | |
101 <div class="input ${summary(c.show_stats)}"> | |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
102 %if c.show_stats: |
3197 | 103 <div id="lang_stats"></div> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
104 %else: |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
105 ${_('Statistics are disabled for this repository')} |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
106 %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
107 ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_statistics'),class_="btn btn-mini")} |
1728
07e56179633e
- fixes celery sqlalchemy session issues for async forking
Marcin Kuzminski <marcin@python-works.com>
parents:
1724
diff
changeset
|
108 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
109 %endif |
3197 | 110 </div> |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
111 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
112 |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
113 <div class="field"> |
3197 | 114 <div class="label-summary"> |
115 <label>${_('Download')}:</label> | |
116 </div> | |
117 <div class="input ${summary(c.show_stats)}"> | |
4196
06e49be38d78
Rename rhodecode_repo to db_repo_scm_instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4195
diff
changeset
|
118 %if len(c.db_repo_scm_instance.revisions) == 0: |
3197 | 119 ${_('There are no downloads yet')} |
3625
260a7a01b054
follow Python conventions for boolean values
Mads Kiilerich <madski@unity3d.com>
parents:
3603
diff
changeset
|
120 %elif not c.enable_downloads: |
3197 | 121 ${_('Downloads are disabled for this repository')} |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
122 %if h.HasPermissionAll('hg.admin')('enable downloads on from summary'): |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
123 ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_downloads'),class_="btn btn-mini")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
124 %endif |
3197 | 125 %else: |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
126 <span id="${'zip_link'}"> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
127 <a class="btn btn-small" href="${h.url('files_archive_home',repo_name=c.db_repo.repo_name,fname='tip.zip')}"><i class="icon-archive"></i> ${_('Download as zip')}</a> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
128 </span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
129 ${h.hidden('download_options')} |
1450
2a8bf2a3da98
fixes #214 added support for downloading subrepos in download menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
1438
diff
changeset
|
130 <span style="vertical-align: bottom"> |
3763
aab189b312fa
download button looks nicer displayed first
Marcin Kuzminski <marcin@python-works.com>
parents:
3717
diff
changeset
|
131 <input id="archive_subrepos" type="checkbox" name="subrepos" /> |
aab189b312fa
download button looks nicer displayed first
Marcin Kuzminski <marcin@python-works.com>
parents:
3717
diff
changeset
|
132 <label for="archive_subrepos" class="tooltip" title="${h.tooltip(_('Check this to download archive with subrepos'))}" >${_('with subrepos')}</label> |
1450
2a8bf2a3da98
fixes #214 added support for downloading subrepos in download menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
1438
diff
changeset
|
133 </span> |
3197 | 134 %endif |
135 </div> | |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
136 </div> |
3529 | 137 </div> |
138 <div id="summary-menu-stats"> | |
139 <ul> | |
140 <li> | |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
141 <a title="${_('Owner')} ${c.db_repo.user.email}"> |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
142 <i class="icon-user"></i> ${c.db_repo.user.username} |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
143 <div class="gravatar" style="float: right; margin: 0px 0px 0px 0px" title="${c.db_repo.user.name} ${c.db_repo.user.lastname}"> |
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
144 <img alt="gravatar" src="${h.gravatar_url(c.db_repo.user.email, 18)}"/> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
145 </div> |
3529 | 146 </a> |
147 </li> | |
148 <li> | |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
149 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
150 <i class="icon-heart"></i> ${_('Followers')} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
151 <span class="stats-bullet" id="current_followers_count">${c.repository_followers}</span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
152 </a> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
153 </li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
154 <li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
155 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
156 <i class="icon-code-fork"></i> ${_('Forks')} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
157 <span class="stats-bullet">${c.repository_forks}</span> |
3529 | 158 </a> |
159 </li> | |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
160 |
3664
b10976229890
swap repo-size with settings in summary. It somehow
Marcin Kuzminski <marcin@python-works.com>
parents:
3656
diff
changeset
|
161 %if c.rhodecode_user.username != 'default': |
b10976229890
swap repo-size with settings in summary. It somehow
Marcin Kuzminski <marcin@python-works.com>
parents:
3656
diff
changeset
|
162 <li class="repo_size"> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
163 <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.db_repo.repo_name}','${str(h.get_token())}')"><i class="icon-archive"></i> ${_('Repository Size')}</a> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
164 <span class="stats-bullet" id="repo_size_2"></span> |
3529 | 165 </li> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
166 %endif |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
167 |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
168 <li> |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
169 %if c.rhodecode_user.username != 'default': |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
170 <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=c.rhodecode_user.api_key)}"><i class="icon-rss-sign"></i> ${_('Feed')}</a> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
171 %else: |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
172 <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name)}"><i class="icon-rss-sign"></i> ${_('Feed')}</a> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
173 %endif |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
174 </li> |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
175 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
176 %if c.show_stats: |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
177 <li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
178 <a title="${_('Statistics')}" href="${h.url('repo_stats_home',repo_name=c.repo_name)}"> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
179 <i class="icon-bar-chart"></i> ${_('Statistics')} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
180 </a> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
181 </li> |
3529 | 182 %endif |
183 </ul> | |
184 </div> | |
3197 | 185 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
186 </div> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
187 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
188 |
4147
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
189 <div class="box"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
190 <div class="title"> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
191 <div class="breadcrumbs"> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
192 %if c.repo_changesets: |
3285
6aae03fa3fee
summary: "shortlog" is not a word ... and the changelog is always better
Mads Kiilerich <madski@unity3d.com>
parents:
3267
diff
changeset
|
193 ${h.link_to(_('Latest changes'),h.url('changelog_home',repo_name=c.repo_name))} |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
194 %else: |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
195 ${_('Quick start')} |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
196 %endif |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
197 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
198 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
199 <div class="table"> |
637
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
200 <div id="shortlog_data"> |
3764
c7970889c5c0
Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3763
diff
changeset
|
201 <%include file='../changelog/changelog_summary_data.html'/> |
637
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
202 </div> |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
203 </div> |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
204 </div> |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
205 |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
206 %if c.readme_data: |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
207 <div id="readme" class="anchor"> |
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
208 <div class="box" style="background-color: #FAFAFA"> |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
209 <div class="title" title="${_('Readme file from revision %s:%s') % (c.db_repo.landing_rev[0], c.db_repo.landing_rev[1])}"> |
2606
59fab1f641bf
added readme permalink
Marcin Kuzminski <marcin@python-works.com>
parents:
2603
diff
changeset
|
210 <div class="breadcrumbs"> |
59fab1f641bf
added readme permalink
Marcin Kuzminski <marcin@python-works.com>
parents:
2603
diff
changeset
|
211 <a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a> |
59fab1f641bf
added readme permalink
Marcin Kuzminski <marcin@python-works.com>
parents:
2603
diff
changeset
|
212 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
213 </div> |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
214 <div class="readme"> |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
215 <div class="readme_box"> |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
216 ${c.readme_data|n} |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
217 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
218 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
219 </div> |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
220 </div> |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
221 %endif |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
222 |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
223 <script type="text/javascript"> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
224 var clone_url = 'clone_url'; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
225 YUE.on(clone_url,'click',function(e){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
226 if(YUD.hasClass(clone_url,'selected')){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
227 return |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
228 } |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
229 else{ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
230 YUD.addClass(clone_url,'selected'); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
231 YUD.get(clone_url).select(); |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
232 } |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
233 }) |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
234 |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
235 YUE.on('clone_by_name','click',function(e){ |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
236 // show url by name and hide name button |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
237 YUD.setStyle('clone_url','display',''); |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
238 YUD.setStyle('clone_by_name','display','none'); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
239 |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
240 // hide url by id and show name button |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
241 YUD.setStyle('clone_by_id','display',''); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
242 YUD.setStyle('clone_url_id','display','none'); |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
243 |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
244 }) |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
245 YUE.on('clone_by_id','click',function(e){ |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
246 |
3197 | 247 // show url by id and hide id button |
248 YUD.setStyle('clone_by_id','display','none'); | |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
249 YUD.setStyle('clone_url_id','display',''); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
250 |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
251 // hide url by name and show id button |
3197 | 252 YUD.setStyle('clone_by_name','display',''); |
253 YUD.setStyle('clone_url','display','none'); | |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
254 }) |
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
255 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
256 $(document).ready(function(){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
257 var cache = {} |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
258 $("#download_options").select2({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
259 placeholder: _TM['Select changeset'], |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
260 dropdownAutoWidth: true, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
261 query: function(query){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
262 var key = 'cache'; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
263 var cached = cache[key] ; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
264 if(cached) { |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
265 var data = {results: []}; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
266 //filter results |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
267 $.each(cached.results, function(){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
268 var section = this.text; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
269 var children = []; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
270 $.each(this.children, function(){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
271 if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
272 children.push({'id': this.id, 'text': this.text}) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
273 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
274 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
275 data.results.push({'text': section, 'children': children}) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
276 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
277 query.callback(data); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
278 }else{ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
279 $.ajax({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
280 url: pyroutes.url('repo_refs_data', {'repo_name': '${c.repo_name}'}), |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
281 data: {}, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
282 dataType: 'json', |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
283 type: 'GET', |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
284 success: function(data) { |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
285 cache[key] = data; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
286 query.callback({results: data.results}); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
287 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
288 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
289 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
290 }, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
291 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
292 // on change of download options |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
293 $('#download_options').change(function(e){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
294 var new_cs = e.added |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
295 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
296 for(k in tmpl_links){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
297 var s = $('#'+k+'_link'); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
298 if(s){ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
299 var title_tmpl = "${_('Download %s as %s') % ('__CS_NAME__','__CS_EXT__')}"; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
300 title_tmpl= title_tmpl.replace('__CS_NAME__',new_cs.text); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
301 title_tmpl = title_tmpl.replace('__CS_EXT__',k); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
302 title_tmpl = '<i class="icon-archive"></i> '+ title_tmpl; |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
303 var url = tmpl_links[k].replace('__CS__',new_cs.id); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
304 var subrepos = $('#archive_subrepos').is(':checked'); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
305 url = url.replace('__SUB__',subrepos); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
306 url = url.replace('__NAME__',title_tmpl); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
307 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
308 s.html(url) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
309 } |
1751
47c2a006d43b
Summary page downloads limited to zip.
Marcin Kuzminski <marcin@python-works.com>
parents:
1748
diff
changeset
|
310 } |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
311 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
312 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
313 var tmpl_links = {}; |
4196
06e49be38d78
Rename rhodecode_repo to db_repo_scm_instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4195
diff
changeset
|
314 %for cnt,archive in enumerate(c.db_repo_scm_instance._get_archives()): |
4195
9581233e9275
Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4187
diff
changeset
|
315 tmpl_links["${archive['type']}"] = '${h.link_to('__NAME__', h.url('files_archive_home',repo_name=c.db_repo.repo_name, fname='__CS__'+archive['extension'],subrepos='__SUB__'),class_='btn btn-small')}'; |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
316 %endfor |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
317 }) |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
318 </script> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
319 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
320 %if c.show_stats: |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
321 <script type="text/javascript"> |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
322 var data = ${c.trending_languages|n}; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
323 var total = 0; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
324 var no_data = true; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
325 var tbl = document.createElement('table'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
326 tbl.setAttribute('class','trending_language_tbl'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
327 var cnt = 0; |
1890
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
328 for (var i=0;i<data.length;i++){ |
3197 | 329 total+= data[i][1].count; |
1940
ef23fa832ab2
fixed percentage in stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1922
diff
changeset
|
330 } |
ef23fa832ab2
fixed percentage in stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1922
diff
changeset
|
331 for (var i=0;i<data.length;i++){ |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
332 cnt += 1; |
1890
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
333 no_data = false; |
1908 | 334 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
335 var hide = cnt>2; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
336 var tr = document.createElement('tr'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
337 if (hide){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
338 tr.setAttribute('style','display:none'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
339 tr.setAttribute('class','stats_hidden'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
340 } |
1890
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
341 var k = data[i][0]; |
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
342 var obj = data[i][1]; |
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
343 var percentage = Math.round((obj.count/total*100),2); |
1908 | 344 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
345 var td1 = document.createElement('td'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
346 td1.width = 150; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
347 var trending_language_label = document.createElement('div'); |
1890
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
348 trending_language_label.innerHTML = obj.desc+" ("+k+")"; |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
349 td1.appendChild(trending_language_label); |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
350 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
351 var td2 = document.createElement('td'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
352 td2.setAttribute('style','padding-right:14px !important'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
353 var trending_language = document.createElement('div'); |
1890
a3efaaa6ed4f
fixes issue #271
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
354 var nr_files = obj.count+" ${_('files')}"; |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
355 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
356 trending_language.title = k+" "+nr_files; |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
357 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
358 if (percentage>22){ |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
359 trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"% "+nr_files+ "</b>"; |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
360 } |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
361 else{ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
362 trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"%</b>"; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
363 } |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
364 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
365 trending_language.setAttribute("class", 'trending_language top-right-rounded-corner bottom-right-rounded-corner'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
366 trending_language.style.width=percentage+"%"; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
367 td2.appendChild(trending_language); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
368 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
369 tr.appendChild(td1); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
370 tr.appendChild(td2); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
371 tbl.appendChild(tr); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
372 if(cnt == 3){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
373 var show_more = document.createElement('tr'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
374 var td = document.createElement('td'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
375 lnk = document.createElement('a'); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
376 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
377 lnk.href='#'; |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3635
diff
changeset
|
378 lnk.innerHTML = "${_('Show more')}"; |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
379 lnk.id='code_stats_show_more'; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
380 td.appendChild(lnk); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
381 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
382 show_more.appendChild(td); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
383 show_more.appendChild(document.createElement('td')); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
384 tbl.appendChild(show_more); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
385 } |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
386 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
387 } |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
388 |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
389 YUD.get('lang_stats').appendChild(tbl); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
390 YUE.on('code_stats_show_more','click',function(){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
391 l = YUD.getElementsByClassName('stats_hidden') |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
392 for (e in l){ |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
393 YUD.setStyle(l[e],'display',''); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
394 }; |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
395 YUD.setStyle(YUD.get('code_stats_show_more'), |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
396 'display','none'); |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
397 }); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
398 </script> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
399 %endif |
74
cdf4fda66dd9
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
400 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
401 </%def> |