Mercurial > kallithea
annotate kallithea/templates/summary/summary.html @ 4845:3a3ec35466e7
templates: move site branding in page title to base template
Instead of repeating the same three lines in each and every template, move
it to the base template.
author | Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com> |
---|---|
date | Mon, 23 Feb 2015 22:11:38 +0100 |
parents | 4aa02271dc13 |
children | ecbb597c336c |
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 |
4811
37354e1ab283
template: use block block for page title in root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4810
diff
changeset
|
3 <%block 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} |
4811
37354e1ab283
template: use block block for page title in root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4810
diff
changeset
|
5 </%block> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
6 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
7 <%def name="breadcrumbs_links()"> |
3532 | 8 ${_('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
|
9 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
10 ## 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
|
11 %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
|
12 %if c.db_repo.locked[0]: |
4656
2ba39763ae7e
block_16.png: use new icon-block font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4655
diff
changeset
|
13 <span class="locking_locked tooltip icon-block" 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
|
14 %else: |
4655
dee6ea53bf27
accept.png: use new icon-ok font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4639
diff
changeset
|
15 <span class="locking_unlocked tooltip icon-ok" title="${_('Repository unlocked')}"></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
|
16 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
17 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
18 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
19 ##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
|
20 %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
|
21 <span> |
4600
f14497d6305e
base: change icon-code-fork menu item to use icon-fork
Sean Farley <sean.michael.farley@gmail.com>
parents:
4593
diff
changeset
|
22 - <i class="icon-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
|
23 </span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
24 %endif |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
25 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
26 ##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
|
27 %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
|
28 <span> |
4600
f14497d6305e
base: change icon-code-fork menu item to use icon-fork
Sean Farley <sean.michael.farley@gmail.com>
parents:
4593
diff
changeset
|
29 - <i class="icon-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
|
30 <span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
31 %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
|
32 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
33 |
4809
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4795
diff
changeset
|
34 <%block name="header_menu"> |
3603
eacd33e0c5b3
use valid options for the top menu: repositories, journal, search and admin
Mads Kiilerich <madski@unity3d.com>
parents:
3587
diff
changeset
|
35 ${self.menu('repositories')} |
4809
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4795
diff
changeset
|
36 </%block> |
219
64e1125fc479
html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents:
210
diff
changeset
|
37 |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
38 <%block name="head_extra"> |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
39 <link href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=c.authuser.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
40 <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=c.authuser.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> |
4829
4aa02271dc13
hgcompat: workaround for not calling largefiles reposetup correctly after 94ac64bcf6fe (Mercurial 3.3)
Mads Kiilerich <madski@unity3d.com>
parents:
4822
diff
changeset
|
41 |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
42 <script> |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
43 redirect_hash_branch = function(){ |
3655
c78de39f30fc
summary: redirect from repo URLs with #branchname to changelog with this branch
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
44 var branch = window.location.hash.replace(/^#(.*)/, '$1'); |
3656 | 45 if (branch){ |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
46 window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}" |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
47 .replace('__BRANCH__',branch); |
3656 | 48 } |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
49 } |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
50 redirect_hash_branch(); |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
51 window.onhashchange = function() { |
3656 | 52 redirect_hash_branch(); |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
53 }; |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
54 </script> |
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
55 </%block> |
2413
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2366
diff
changeset
|
56 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
57 <%def name="main()"> |
3988
072a37c44f58
templates: drop context_bar, use repo_context_bar directly
Mads Kiilerich <madski@unity3d.com>
parents:
3960
diff
changeset
|
58 ${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
|
59 <% |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
60 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
|
61 %> |
1c8f818787b3
old style: show the full link box on summary page - no overlap or truncation
Mads Kiilerich <madski@unity3d.com>
parents:
4116
diff
changeset
|
62 <div class="box"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
63 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
64 <div class="title"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
65 ${self.breadcrumbs()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
66 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
67 <!-- end box / title --> |
3197 | 68 <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
|
69 <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
|
70 <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
|
71 <div class="label-summary"> |
4822
53d766fc9782
spelling: consistent capitalization of URL
Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com>
parents:
4811
diff
changeset
|
72 <label>${_('Clone URL')}:</label> |
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> |
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="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
|
75 <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
|
76 <input style="display:none;width:80%" type="text" id="clone_url_id" readonly="readonly" value="${c.clone_repo_url_id}"/> |
4529
869976dfb8c2
Improve 'Show by ID' and 'Show by Name' on summary page.
Na'Tosha Bard <natosha@unity3d.com>
parents:
4527
diff
changeset
|
77 <div style="display:none" id="clone_by_name" class="btn btn-small">${_('Show by Name')}</div> |
869976dfb8c2
Improve 'Show by ID' and 'Show by Name' on summary page.
Na'Tosha Bard <natosha@unity3d.com>
parents:
4527
diff
changeset
|
78 <div id="clone_by_id" class="btn btn-small">${_('Show by ID')}</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
|
79 </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
|
80 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
81 |
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
|
82 <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
|
83 <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
|
84 <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
|
85 </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
|
86 %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
|
87 <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
|
88 %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
|
89 <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
|
90 %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
|
91 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
92 |
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
|
93 <div class="field"> |
3197 | 94 <div class="label-summary"> |
95 <label>${_('Trending files')}:</label> | |
96 </div> | |
97 <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
|
98 %if c.show_stats: |
3197 | 99 <div id="lang_stats"></div> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
100 %else: |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
101 ${_('Statistics are disabled for this repository')} |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
102 %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
|
103 ${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
|
104 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
105 %endif |
3197 | 106 </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
|
107 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
108 |
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
|
109 <div class="field"> |
3197 | 110 <div class="label-summary"> |
111 <label>${_('Download')}:</label> | |
112 </div> | |
113 <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
|
114 %if len(c.db_repo_scm_instance.revisions) == 0: |
3197 | 115 ${_('There are no downloads yet')} |
3625
260a7a01b054
follow Python conventions for boolean values
Mads Kiilerich <madski@unity3d.com>
parents:
3603
diff
changeset
|
116 %elif not c.enable_downloads: |
3197 | 117 ${_('Downloads are disabled for this repository')} |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
118 %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
|
119 ${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
|
120 %endif |
3197 | 121 %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
|
122 <span id="${'zip_link'}"> |
4576
dc5abab268dc
database_edit.png: use new icon-file-zip font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4529
diff
changeset
|
123 <a class="btn btn-small" href="${h.url('files_archive_home',repo_name=c.db_repo.repo_name,fname='tip.zip')}"><i class="icon-file-zip"></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
|
124 </span> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
125 ${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
|
126 <span style="vertical-align: bottom"> |
3763
aab189b312fa
download button looks nicer displayed first
Marcin Kuzminski <marcin@python-works.com>
parents:
3717
diff
changeset
|
127 <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
|
128 <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
|
129 </span> |
3197 | 130 %endif |
131 </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
|
132 </div> |
3529 | 133 </div> |
134 <div id="summary-menu-stats"> | |
135 <ul> | |
136 <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
|
137 <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
|
138 <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
|
139 <div class="gravatar" style="float: right; margin: 0px 0px 0px 0px" title="${c.db_repo.user.name} ${c.db_repo.user.lastname}"> |
4795
83087ae63bd6
gravatar: use helper method to generate retina img tag
Sean Farley <sean.michael.farley@gmail.com>
parents:
4656
diff
changeset
|
140 ${h.gravatar(c.db_repo.user.email, size=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
|
141 </div> |
3529 | 142 </a> |
143 </li> | |
144 <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
|
145 <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
|
146 <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
|
147 <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
|
148 </a> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
149 </li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
150 <li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
151 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
4600
f14497d6305e
base: change icon-code-fork menu item to use icon-fork
Sean Farley <sean.michael.farley@gmail.com>
parents:
4593
diff
changeset
|
152 <i class="icon-fork"></i> ${_('Forks')} |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
153 <span class="stats-bullet">${c.repository_forks}</span> |
3529 | 154 </a> |
155 </li> | |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
156 |
4197
d208416c84c6
Rename rhodecode_user to authuser - it is an AuthUser instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4196
diff
changeset
|
157 %if c.authuser.username != 'default': |
3664
b10976229890
swap repo-size with settings in summary. It somehow
Marcin Kuzminski <marcin@python-works.com>
parents:
3656
diff
changeset
|
158 <li class="repo_size"> |
4638
d41b105e9cd9
summary: use ruler instead of database icon for repo size
Sean Farley <sean.michael.farley@gmail.com>
parents:
4600
diff
changeset
|
159 <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.db_repo.repo_name}','${str(h.get_token())}')"><i class="icon-ruler"></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
|
160 <span class="stats-bullet" id="repo_size_2"></span> |
3529 | 161 </li> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
162 %endif |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
163 |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
164 <li> |
4197
d208416c84c6
Rename rhodecode_user to authuser - it is an AuthUser instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4196
diff
changeset
|
165 %if c.authuser.username != 'default': |
4593
9a66b802aec6
rss_16.png: use new icon-rss-squared font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4576
diff
changeset
|
166 <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=c.authuser.api_key)}"><i class="icon-rss-squared"></i> ${_('Feed')}</a> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
167 %else: |
4593
9a66b802aec6
rss_16.png: use new icon-rss-squared font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4576
diff
changeset
|
168 <a href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name)}"><i class="icon-rss-squared"></i> ${_('Feed')}</a> |
3560
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
169 %endif |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
170 </li> |
835d44dd6ed8
small ui fixes for summary info block
Marcin Kuzminski <marcin@python-works.com>
parents:
3552
diff
changeset
|
171 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
172 %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
|
173 <li> |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
174 <a title="${_('Statistics')}" href="${h.url('repo_stats_home',repo_name=c.repo_name)}"> |
4639
af75f8a6f262
chart_bar.png: use new icon-graph font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4638
diff
changeset
|
175 <i class="icon-graph"></i> ${_('Statistics')} |
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 </a> |
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> |
3529 | 178 %endif |
179 </ul> | |
180 </div> | |
3197 | 181 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
182 </div> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
183 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
184 |
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
|
185 <div class="box"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
186 <div class="title"> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
187 <div class="breadcrumbs"> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
188 %if c.repo_changesets: |
4527
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
189 ${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
|
190 %else: |
4527
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
191 ${_('Quick Start')} |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
192 %endif |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1728
diff
changeset
|
193 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
194 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
195 <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
|
196 <div id="shortlog_data"> |
3764
c7970889c5c0
Removed shortlog aka lightweight changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3763
diff
changeset
|
197 <%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
|
198 </div> |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
199 </div> |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
200 </div> |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
201 |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
202 %if c.readme_data: |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
203 <div id="readme" class="anchor"> |
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
204 <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
|
205 <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
|
206 <div class="breadcrumbs"> |
59fab1f641bf
added readme permalink
Marcin Kuzminski <marcin@python-works.com>
parents:
2603
diff
changeset
|
207 <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
|
208 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
209 </div> |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
210 <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
|
211 <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
|
212 ${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
|
213 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
214 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
215 </div> |
2990
0bc7b5895242
small anchor cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2973
diff
changeset
|
216 </div> |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
217 %endif |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
218 |
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
219 <script type="text/javascript"> |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
220 $(document).ready(function(){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
221 var $clone_url = $('#clone_url'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
222 var $clone_url_id = $('#clone_url_id'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
223 var $clone_by_name = $('#clone_by_name'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
224 var $clone_by_id = $('#clone_by_id'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
225 $clone_url.click(function(e){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
226 if($clone_url.hasClass('selected')){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
227 return ; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
228 }else{ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
229 $clone_url.addClass('selected'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
230 $clone_url.select(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
231 } |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
232 }); |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
233 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
234 $clone_by_name.click(function(e){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
235 // show url by name and hide name button |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
236 $clone_url.show(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
237 $clone_by_name.hide(); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
238 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
239 // hide url by id and show name button |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
240 $clone_by_id.show(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
241 $clone_url_id.hide(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
242 }); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
243 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
244 $clone_by_id.click(function(e){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
245 // show url by id and hide id button |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
246 $clone_by_id.hide(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
247 $clone_url_id.show(); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
248 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
249 // hide url by name and show id button |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
250 $clone_by_name.show(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
251 $clone_url.hide(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
252 }); |
1813
a8c66e870bd0
implements #285: Implemented non changeable urls for clone url, and web views
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
253 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
254 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
|
255 $("#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
|
256 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
|
257 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
|
258 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
|
259 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
|
260 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
|
261 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
|
262 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
|
263 //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
|
264 $.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
|
265 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
|
266 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
|
267 $.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
|
268 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
|
269 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
|
270 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
271 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
272 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
|
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 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
|
275 }else{ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
276 $.ajax({ |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
277 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
|
278 data: {}, |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
279 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
|
280 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
|
281 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
|
282 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
|
283 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
|
284 } |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
285 }) |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
286 } |
4516
b3f12c354e87
javascript: remove nice trailing comma to please IE8 (Issue #39)
Mads Kiilerich <madski@unity3d.com>
parents:
4492
diff
changeset
|
287 } |
4116
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 // 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
|
290 $('#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
|
291 var new_cs = e.added |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
292 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
293 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
|
294 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
|
295 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
|
296 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
|
297 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
|
298 title_tmpl = title_tmpl.replace('__CS_EXT__',k); |
4576
dc5abab268dc
database_edit.png: use new icon-file-zip font
Sean Farley <sean.michael.farley@gmail.com>
parents:
4529
diff
changeset
|
299 title_tmpl = '<i class="icon-file-zip"></i> '+ title_tmpl; |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
300 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
|
301 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
|
302 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
|
303 url = url.replace('__NAME__',title_tmpl); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
304 |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
305 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
|
306 } |
1751
47c2a006d43b
Summary page downloads limited to zip.
Marcin Kuzminski <marcin@python-works.com>
parents:
1748
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 }); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
309 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
310 var tmpl_links = {}; |
4196
06e49be38d78
Rename rhodecode_repo to db_repo_scm_instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4195
diff
changeset
|
311 %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
|
312 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
|
313 %endfor |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4003
diff
changeset
|
314 }) |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
315 </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
|
316 |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
317 %if c.show_stats: |
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
318 <script type="text/javascript"> |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
319 $(document).ready(function(){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
320 var data = ${c.trending_languages|n}; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
321 var total = 0; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
322 var no_data = true; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
323 var tbl = document.createElement('table'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
324 tbl.setAttribute('class','trending_language_tbl'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
325 var cnt = 0; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
326 for (var i=0;i<data.length;i++){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
327 total+= data[i][1].count; |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
328 } |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
329 for (var i=0;i<data.length;i++){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
330 cnt += 1; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
331 no_data = false; |
1908 | 332 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
333 var hide = cnt>2; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
334 var tr = document.createElement('tr'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
335 if (hide){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
336 tr.setAttribute('style','display:none'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
337 tr.setAttribute('class','stats_hidden'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
338 } |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
339 var k = data[i][0]; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
340 var obj = data[i][1]; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
341 var percentage = Math.round((obj.count/total*100),2); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
342 |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
343 var td1 = document.createElement('td'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
344 td1.width = 150; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
345 var trending_language_label = document.createElement('div'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
346 trending_language_label.innerHTML = obj.desc+" ("+k+")"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
347 td1.appendChild(trending_language_label); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
348 |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
349 var td2 = document.createElement('td'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
350 td2.setAttribute('style','padding-right:14px !important'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
351 var trending_language = document.createElement('div'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
352 var nr_files = obj.count+" ${_('files')}"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
353 |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
354 trending_language.title = k+" "+nr_files; |
1605
df59c0503636
implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents:
1553
diff
changeset
|
355 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
356 if (percentage>22){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
357 trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"% "+nr_files+ "</b>"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
358 } |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
359 else{ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
360 trending_language.innerHTML = "<b style='font-size:0.8em'>"+percentage+"%</b>"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
361 } |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
362 |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
363 trending_language.setAttribute("class", 'trending_language top-right-rounded-corner bottom-right-rounded-corner'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
364 trending_language.style.width=percentage+"%"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
365 td2.appendChild(trending_language); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
366 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
367 tr.appendChild(td1); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
368 tr.appendChild(td2); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
369 tbl.appendChild(tr); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
370 if(cnt == 3){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
371 var show_more = document.createElement('tr'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
372 var td = document.createElement('td'); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
373 lnk = document.createElement('a'); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
374 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
375 lnk.href='#'; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
376 lnk.innerHTML = "${_('Show more')}"; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
377 lnk.id='code_stats_show_more'; |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
378 td.appendChild(lnk); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
379 |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
380 show_more.appendChild(td); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
381 show_more.appendChild(document.createElement('td')); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
382 tbl.appendChild(show_more); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
383 } |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
384 |
1719
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 |
4492
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
387 $('#lang_stats').appendChild(tbl); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
388 $('#code_status_show_more').click(function(){ |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
389 $('.stats_hidden').show(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
390 $('#code_status_show_more').hide(); |
b82e782d6824
wrap javascript in $(document).ready
Takumi IINO <trot.thunder@gmail.com>
parents:
4491
diff
changeset
|
391 }); |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
392 }); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
393 </script> |
1719
4a28aff31a15
optimized summary page for disabled stats
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
394 %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
|
395 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1813
diff
changeset
|
396 </%def> |