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

Unified Diff: appengine/monorail/templates/sitewide/usertabs.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 side-by-side diff with in-line comments
Download patch
Index: appengine/monorail/templates/sitewide/usertabs.ezt
diff --git a/appengine/monorail/templates/sitewide/usertabs.ezt b/appengine/monorail/templates/sitewide/usertabs.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..527a330583a0a861d8fd865180327bcd2773c3e5
--- /dev/null
+++ b/appengine/monorail/templates/sitewide/usertabs.ezt
@@ -0,0 +1,43 @@
+[# Display a row of tabs for servlets with URLs starting with /u/username.
+
+ Args:
+ arg0: String like "t1", "t2", "t3" to identify the currently active tab.
+]
+
+<div class="at isf [user_tab_mode]">
+ <span class="inst2">
+ <a href="[viewed_user.profile_url]">[if-any viewing_self]My Profile[else]User Profile[end]</a>
+ </span>
+
+ <span class="inst5">
+ <a href="[viewed_user.profile_url][if-any viewing_self]updates/projects[else]updates[end]">Updates</a>
+ </span>
+
+ [if-any viewing_self]
+ <span class="inst3">
+ <a href="/hosting/settings">Settings</a>
+ </span>
+ [end]
+
+ [if-any offer_saved_queries_subtab]
+ <span class="inst4">
+ <a href="[viewed_user.profile_url]queries">Saved Queries</a>
+ </span>
+ [end]
+
+</div>
+
+
+[is arg0 "t3"]
+ <div class="at [user_updates_tab_mode]" style="margin-left: 2em">
+ <span class="inst1">
+ <a href="[viewed_user.profile_url]updates">From [viewed_user.display_name]</a>
+ </span>
+ <span class="inst2">
+ <a href="[viewed_user.profile_url]updates/projects">Starred Projects</a>
+ </span>
+ <span class="inst3">
+ <a href="[viewed_user.profile_url]updates/developers">Starred Developers</a>
+ </span>
+ </div>
+[end]

Powered by Google App Engine
This is Rietveld 408576698