blob: a1ce4aeda98e4879dae6f76187925f2321c11e8d [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[# This displays one list row of the project search results.
2
3No parameters are used, but it expects the "projects" loop variable to
4hold the current project.]
5
6[if-any logged_in_user]
7 [# Display star for logged in user to star this project]
8 <td>
9 [if-any logged_in_user]
10 <a class="star"
11 style="color:[if-any projects.starred]cornflowerblue[else]gray[end]"
12 title="[if-any projects.starred]Un-s[else]S[end]tar this project" data-project-name="[projects.project_name]">
13 [if-any projects.starred]&#9733;[else]&#9734;[end]
14 </a>
15 [end]
16 </td>
17[end]
18
19[# Project name link to this project]
20<td style="white-space:nowrap" class="id">
21 <a href="[projects.relative_home_url]/" style="font-size:medium">
22 [projects.project_name]
23 </a>
24</td>
25
26[# Display membership and star only if user is logged in]
27[if-any logged_in_user]
28 [# User's membership status of this project]
29 <td>
30 [if-any projects.membership_desc][projects.membership_desc][end]
31 </td>
32[end]
33
34[# Display how many have starred this project]
35<td style="white-space:nowrap">
36 [is projects.num_stars "0"]
37 [else]
38 <span id="star_count-[projects.project_name]">[projects.num_stars]</span>
39 [end]
40</td>
41
42[# When project was last updated]
43<td style="white-space:nowrap">
44 [if-any projects.last_updated_exists]
45 [projects.recent_activity]
46 [end]
47</td>
48
49[# The short summary of this project]
50<td style="width:100%">
51 [is projects.limited_summary ""][else]
52 [projects.limited_summary]<br>
53 [end]
54</td>