Show More
@@ -8,14 +8,14 b'' | |||
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 |
<% |
|
|
12 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
14 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
15 | </%def> | |
|
16 |
<% |
|
|
17 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
18 | </%def> | |
|
11 | <%block name="js_extra"> | |
|
12 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
14 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
15 | </%block> | |
|
16 | <%block name="css_extra"> | |
|
17 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
18 | </%block> | |
|
19 | 19 | |
|
20 | 20 | <%def name="breadcrumbs_links()"> |
|
21 | 21 | ${_('Edit Gist')} · ${c.gist.gist_access_id} |
@@ -8,14 +8,14 b'' | |||
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 |
<% |
|
|
12 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
14 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
15 | </%def> | |
|
16 |
<% |
|
|
17 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
18 | </%def> | |
|
11 | <%block name="js_extra"> | |
|
12 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
14 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
15 | </%block> | |
|
16 | <%block name="css_extra"> | |
|
17 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
18 | </%block> | |
|
19 | 19 | |
|
20 | 20 | <%def name="breadcrumbs_links()"> |
|
21 | 21 | ${_('New Gist')} |
@@ -13,8 +13,7 b'' | |||
|
13 | 13 | <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.kallithea_version)}" media="screen"/> |
|
14 | 14 | <link rel="stylesheet" type="text/css" href="${h.url('/css/contextbar.css', ver=c.kallithea_version)}" media="screen"/> |
|
15 | 15 | <link rel="stylesheet" type="text/css" href="${h.url('/fontello/css/kallithea.css', ver=c.kallithea_version)}"> |
|
16 |
<% |
|
|
17 | ${self.css_extra()} | |
|
16 | <%block name="css_extra"/> | |
|
18 | 17 | |
|
19 | 18 | ## JAVASCRIPT ## |
|
20 | 19 | <script type="text/javascript"> |
@@ -70,8 +69,7 b'' | |||
|
70 | 69 | <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.kallithea_version)}"></script> |
|
71 | 70 | <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script> |
|
72 | 71 | ## EXTRA FOR JS |
|
73 |
<% |
|
|
74 | ${self.js_extra()} | |
|
72 | <%block name="js_extra"/> | |
|
75 | 73 | <script type="text/javascript"> |
|
76 | 74 | (function(window,undefined){ |
|
77 | 75 | var History = window.History; // Note: We are using a capital H instead of a lower h |
@@ -107,8 +105,7 b'' | |||
|
107 | 105 | }); |
|
108 | 106 | </script> |
|
109 | 107 | |
|
110 |
<% |
|
|
111 | ${self.head_extra()} | |
|
108 | <%block name="head_extra"/> | |
|
112 | 109 | </head> |
|
113 | 110 | <body id="body"> |
|
114 | 111 | ## IE hacks |
@@ -2,14 +2,14 b'' | |||
|
2 | 2 | |
|
3 | 3 | <%inherit file="/base/base.html"/> |
|
4 | 4 | |
|
5 |
<% |
|
|
6 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
7 | <script type="text/javascript" src="${h.url('/js/mergely.js')}"></script> | |
|
8 | </%def> | |
|
9 |
<% |
|
|
10 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/mergely.css')}"/> | |
|
12 | </%def> | |
|
5 | <%block name="js_extra"> | |
|
6 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
7 | <script type="text/javascript" src="${h.url('/js/mergely.js')}"></script> | |
|
8 | </%block> | |
|
9 | <%block name="css_extra"> | |
|
10 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/mergely.css')}"/> | |
|
12 | </%block> | |
|
13 | 13 | |
|
14 | 14 | <%def name="title()"> |
|
15 | 15 | ${_('%s File side-by-side diff') % c.repo_name} |
@@ -7,14 +7,14 b'' | |||
|
7 | 7 | %endif |
|
8 | 8 | </%def> |
|
9 | 9 | |
|
10 |
<% |
|
|
11 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
12 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
14 | </%def> | |
|
15 |
<% |
|
|
16 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
17 | </%def> | |
|
10 | <%block name="js_extra"> | |
|
11 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
12 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
14 | </%block> | |
|
15 | <%block name="css_extra"> | |
|
16 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
17 | </%block> | |
|
18 | 18 | |
|
19 | 19 | <%block name="header_menu"> |
|
20 | 20 | ${self.menu('repositories')} |
@@ -7,14 +7,14 b'' | |||
|
7 | 7 | %endif |
|
8 | 8 | </%def> |
|
9 | 9 | |
|
10 |
<% |
|
|
11 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
12 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
14 | </%def> | |
|
15 |
<% |
|
|
16 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
17 | </%def> | |
|
10 | <%block name="js_extra"> | |
|
11 | <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script> | |
|
12 | <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script> | |
|
13 | <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script> | |
|
14 | </%block> | |
|
15 | <%block name="css_extra"> | |
|
16 | <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/> | |
|
17 | </%block> | |
|
18 | 18 | |
|
19 | 19 | <%block name="header_menu"> |
|
20 | 20 | ${self.menu('repositories')} |
@@ -20,12 +20,12 b'' | |||
|
20 | 20 | <%block name="header_menu"> |
|
21 | 21 | ${self.menu('journal')} |
|
22 | 22 | </%block> |
|
23 |
<% |
|
|
24 | <link href="${h.url('journal_atom', api_key=c.authuser.api_key)}" rel="alternate" title="${_('ATOM journal feed')}" type="application/atom+xml" /> | |
|
25 | <link href="${h.url('journal_rss', api_key=c.authuser.api_key)}" rel="alternate" title="${_('RSS journal feed')}" type="application/rss+xml" /> | |
|
26 | </%def> | |
|
23 | <%block name="head_extra"> | |
|
24 | <link href="${h.url('journal_atom', api_key=c.authuser.api_key)}" rel="alternate" title="${_('ATOM journal feed')}" type="application/atom+xml" /> | |
|
25 | <link href="${h.url('journal_rss', api_key=c.authuser.api_key)}" rel="alternate" title="${_('RSS journal feed')}" type="application/rss+xml" /> | |
|
26 | </%block> | |
|
27 | ||
|
27 | 28 | <%def name="main()"> |
|
28 | ||
|
29 | 29 | <div class="box box-left"> |
|
30 | 30 | <!-- box / title --> |
|
31 | 31 | <div class="title"> |
@@ -12,10 +12,10 b'' | |||
|
12 | 12 | <%block name="header_menu"> |
|
13 | 13 | ${self.menu('journal')} |
|
14 | 14 | </%block> |
|
15 |
<% |
|
|
16 | <link href="${h.url('public_journal_atom')}" rel="alternate" title="${_('ATOM public journal feed')}" type="application/atom+xml" /> | |
|
17 | <link href="${h.url('public_journal_rss')}" rel="alternate" title="${_('RSS public journal feed')}" type="application/rss+xml" /> | |
|
18 | </%def> | |
|
15 | <%block name="head_extra"> | |
|
16 | <link href="${h.url('public_journal_atom')}" rel="alternate" title="${_('ATOM public journal feed')}" type="application/atom+xml" /> | |
|
17 | <link href="${h.url('public_journal_rss')}" rel="alternate" title="${_('RSS public journal feed')}" type="application/rss+xml" /> | |
|
18 | </%block> | |
|
19 | 19 | <%def name="main()"> |
|
20 | 20 | |
|
21 | 21 | <div class="box"> |
@@ -15,10 +15,10 b'' | |||
|
15 | 15 | ${self.menu('repositories')} |
|
16 | 16 | </%block> |
|
17 | 17 | |
|
18 |
<% |
|
|
19 | <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" /> | |
|
20 | <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" /> | |
|
21 | </%def> | |
|
18 | <%block name="head_extra"> | |
|
19 | <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" /> | |
|
20 | <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" /> | |
|
21 | </%block> | |
|
22 | 22 | |
|
23 | 23 | <%def name="main()"> |
|
24 | 24 | ${self.repo_context_bar('summary')} |
@@ -38,25 +38,24 b'' | |||
|
38 | 38 | ${self.menu('repositories')} |
|
39 | 39 | </%block> |
|
40 | 40 | |
|
41 |
<% |
|
|
42 | <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" /> | |
|
43 | <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" /> | |
|
44 | ||
|
45 | <script> | |
|
46 | redirect_hash_branch = function(){ | |
|
41 | <%block name="head_extra"> | |
|
42 | <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" /> | |
|
43 | <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" /> | |
|
44 | ||
|
45 | <script> | |
|
46 | redirect_hash_branch = function(){ | |
|
47 | 47 | var branch = window.location.hash.replace(/^#(.*)/, '$1'); |
|
48 | 48 | if (branch){ |
|
49 |
|
|
|
50 |
|
|
|
49 | window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}" | |
|
50 | .replace('__BRANCH__',branch); | |
|
51 | 51 | } |
|
52 | } | |
|
53 | redirect_hash_branch(); | |
|
54 | window.onhashchange = function() { | |
|
52 | } | |
|
53 | redirect_hash_branch(); | |
|
54 | window.onhashchange = function() { | |
|
55 | 55 | redirect_hash_branch(); |
|
56 | }; | |
|
57 | </script> | |
|
58 | ||
|
59 | </%def> | |
|
56 | }; | |
|
57 | </script> | |
|
58 | </%block> | |
|
60 | 59 | |
|
61 | 60 | <%def name="main()"> |
|
62 | 61 | ${self.repo_context_bar('summary')} |
General Comments 0
You need to be logged in to leave comments.
Login now