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

Unified Diff: appengine/monorail/templates/sitewide/project-list-row.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/project-list-row.ezt
diff --git a/appengine/monorail/templates/sitewide/project-list-row.ezt b/appengine/monorail/templates/sitewide/project-list-row.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..23fa8b5c681f22e68d036525b523929d5744f9eb
--- /dev/null
+++ b/appengine/monorail/templates/sitewide/project-list-row.ezt
@@ -0,0 +1,52 @@
+[# This displays one list row of the project search results.
+
+No parameters are used, but it expects the "projects" loop variable to
+hold the current project.]
+
+[# Project name link to this project]
+<td style="width:10%">
+ <a href="[projects.relative_home_url]/" style="font-size:medium">
+ [projects.project_name]
+ </a>
+</td>
+
+[# Display membership and star only if user is logged in]
+[if-any logged_in_user]
+ [# User's membership status of this project]
+ <td style="width:10%">
+ [if-any projects.membership_desc][projects.membership_desc][end]
+ </td>
+
+ [# Display star for logged in user to star this project]
+ <td style="width:5%">
+ [if-any logged_in_user]
+ <a class="star"
+ style="color:[if-any projects.starred]cornflowerblue[else]gray[end]"
+ title="[if-any projects.starred]Un-s[else]S[end]tar this project" data-project-name="[projects.project_name]">
+ [if-any projects.starred]&#9733;[else]&#9734;[end]
+ </a>
+ [end]
+ </td>
+[end]
+
+[# Display how many have starred this project]
+<td style="width:10%">
+ [is projects.num_stars "0"]
+ [else]
+ Stars: <span id="star_count-[projects.project_name]">[projects.num_stars]</span>
+ [end]
+</td>
+
+[# When project was last updated]
+<td style="width:20%">
+ [if-any projects.last_updated_exists]
+ Updated: [projects.recent_activity]
+ [end]
+</td>
+
+[# The short summary of this project]
+<td style="width:45%">
+ [is projects.limited_summary ""][else]
+ [projects.limited_summary]<br>
+ [end]
+</td>

Powered by Google App Engine
This is Rietveld 408576698