Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: appengine/monorail/templates/framework/maintabs.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 [# Show top-level tabs.
2
3 Args:
4 arg0: Can be "showtabs", or "showusertabs" to select which
5 top-level tabs are shown.
6 arg1: String like "t1", "t2", "t3" to identify the currently active tab.
7 ]
8 <table id="monobar" width="100%" cellpadding="0" cellspacing="0">
9 <tr>
10 [if-any project_thumbnail_url]
11 <th id="thumbnail_box">
12 <a href="[project_home_page]" target="_blank">
13 <img src="[project_thumbnail_url]">
14 </a>
15 </th>
16 [else]
17 <th class="padded">
18 <a href="/" id="wordmark">[site_name]</a>
19 </th>
20 [end]
21 [if-any projectname]
22 <th class="toptabs padded">
23 <a href="[project_home_url]/" title="[project_summary]"
24 id="projects-dropdown">Project: [projectname] <small>&#9660;</ small></a>
25 <a href="[project_home_url]/issues/list" class="[is main_tab_mode "t2"]act ive[end]">Issues</a>
26 <a href="[project_home_url]/people/list" class="[is main_tab_mode "t3"]act ive[end]">People</a>
27 <a href="[project_home_url]/adminIntro" class="[is main_tab_mode "t4"]acti ve[end]">Development process</a>
28 <a href="[project_home_url]/updates/list" class="[is main_tab_mode "t5"]ac tive[end]">History</a>
29 [if-any perms.EditProject]
30 <a href="[project_home_url]/admin"
31 class="[is main_tab_mode "t6"]active[else]inactive[end]">Administer</ a>
32 [end]
33
34 </th>
35 [end]
36
37 [if-any viewed_user]
38 <th class="padded">
39 User: [viewed_user.display_name]
40 [if-any viewed_user_pb.is_site_admin_bool]<i>(Administrator)</i>[end]
41 </th>
42 [end]
43
44 <td width="100%" id="userbar">
45 [include "user-bar.ezt"]
46 </td>
47 </tr>
48 </table>
49
50 <script type="text/javascript" nonce="[nonce]">
51 runOnLoad(function() {
52 if ($("projects-dropdown"))
53 $("projects-dropdown").addEventListener("click", function(event) {
54 event.preventDefault();
55 });
56 });
57 </script>
58
59 [is arg0 "showtabs"]
60 <div class="subt">
61 [include "projecttabs.ezt"]
62 </div>
63 [else][is arg0 "showusertabs"]
64 <div class="subt">
65 [include "../sitewide/usertabs.ezt" arg1]
66 </div>
67 [else][is arg0 "showusergrouptabs"]
68 <div class="subt">
69 [include "../sitewide/usergrouptabs.ezt" arg1]
70 </div>
71 [end][end][end]
72
73 [if-any site_read_only][else]
74 [if-any project_alert]
75 <div style="font-weight: bold; color: #c00; margin-top: 5px; display: block; ">
76 [project_alert]
77 </div>
78 [end]
79 [end]
80
81 [include "../features/cues.ezt"]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698