blob: 809de10ebcbcf45c859eef39c3f6ed2de3eca410 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[if-any cue account_cue]
2
3[# Do not show cue if there is an alert shown on the page.]
4[if-any alerts.show][else]
5
6
7[# Dialog box for privacy settings.]
8[is cue "privacy_click_through"]
9 <div class="scrim cue">
10 <div id="privacy_dialog">
11 <h2>Email display settings</h2>
12
13 <p>There is a <a href="/hosting/settings" title="Settings"
14 class="dismiss_cue">setting</a> to control how your email
15 address appears on comments and issues that you post.
16
17 [if-any is_privileged_domain_user]
18 Since you are an integral part of this community, that setting
19 defaults to showing your full email address.</p>
20
21 <p>Also, you are being trusted to view email addresses of
22 non-members who post comments in your projects. Please use
23 those addresses only to request additional information about
24 the posted comments, and do not share other users' email
25 addresses beyond the site.</p>
26 [else]
27 Project members will always see your full email address. By
28 default, other users who visit the site will see an
29 abbreviated version of your email address.</p>
Copybara854996b2021-09-07 19:36:02 +000030 [end]
31
32 <div class="actions">
33 <a href="#" title="Got it" class="dismiss_cue">GOT IT</a>
34 </div>
35 </div>
36 </div>
37
38[else][if-any account_cue]
39
40 <table id="alert-table" align="center" border="0" cellspacing="0" cellpadding="0">
41 <tr><td class="notice" id="notice">
42 [# Cue card to warn users who are using a child account.]
43 [is account_cue "switch_to_parent_account"]
44 <div>You are signed in to a linked account.</div>
45 <a href="[login_url]">Switch to [parent_email]</a>.
46 [end]
47 </td></tr>
48 </table>
49
50[else][is cue "code_of_conduct"]
51 [# Note: code-of-conduct cue card is implemented in cues-conduct.ezt which is
52 included from forms where users post text.]
53
54[else]
55
56 <table align="center" border="0" cellspacing="0" cellpadding="0" class="cue">
57 <tr><td><span>
58 [# Cue cards to teach users how to join a project.]
59 [is cue "how_to_join_project"]
60 <b>How-to:</b>
61 Join this project by contacting the project owners.
62 [end]
63
64 [# Cue card to teach users how to search for numbers in the issue tracker.]
65 [is cue "search_for_numbers"]
66 [if-any jump_local_id]
67 <b>Tip:</b>
68 To find issues containing "[jump_local_id]", use quotes.
69 [end]
70 [end]
71
72 [# Cue card to teach users how to search for numbers in the issue tracker.]
73 [is cue "dit_keystrokes"]
74 <b>Tip:</b>
75 Press <b>Esc</b> then <b style="font-size:130%"><tt>?</tt></b> for keyboard shortcuts.
76 [end]
77
78 [# Cue card to teach users that italics mean derived values in the issue tracker.]
79 [is cue "italics_mean_derived"]
80 <b>Note:</b>
81 <i>Italics</i> mean that a value was derived by a filter rule.
82 <a href="http://code.google.com/p/monorail/wiki/FilterRules">Learn more</a>
83 [end]
84
85 [# Teach users that color blocks mean that an issue participant may not be available.]
86 [is cue "availability_msgs"]
87 <b>Note:</b>
88 Color blocks (like <span class="availability_unsure" style="padding:0">&#9608;</span> or
89 <span class="availability_never" style="padding:0">&#9608;</span>)
90 mean that a user may not be available. Tooltip shows the reason.
91 [end]
92
93 [# Cue card to teach users that full-text indexing takes time.]
94 [is cue "stale_fulltext"]
95 <b>Note:</b>
96 Searching for text in issues may show results that are a few minutes out of date.
97 [end]
98
99 [# Cue cards to improve discoverability of people roles.]
100 [is cue "document_team_duties"]
101 [if-any read_only][else]
102 <b>Tip:</b>
103 Document <a href="people/list">each teammate's project duties</a>.
104 [end]
105 [end]
106
107 [# Cue cards to explain grid mode.]
108 [is cue "showing_ids_instead_of_tiles"]
109 <b>Note:</b>
110 Grid mode automatically switches to displaying IDs when there are many results.
111 [end]
112
113 [# Cue cards to explain ownermodified, statusmodified, and componentmodified.]
114 [is cue "issue_timestamps"]
115 <b>Note:</b>
116 ownermodified, statusmodified, and componentmodified are the times at which
117 an issue's owner, status or component were changed.
118 [end]
119
120 [# Cue card to remind the user that they have set a vacation message.]
121 [is cue "you_are_on_vacation"]
122 <b>Note:</b>
123 Your <a href="/hosting/settings">vacation message</a> is set to:
124 "[logged_in_user.avail_message_short]".
125 [end]
126
127 [# Cue card to inform user that email to them bounced and that they must reset.]
128 [is cue "your_email_bounced"]
129 <b>Action required:</b>
130 An email to you bounced. Once you can reliably receive email, clear the
131 <a href="[logged_in_user.profile_url]">bouncing status</a>.
132 [end]
133
134 [# Cue card to tell users what it means to star a hotlist]
135 [is cue "explain_hotlist_starring"]
136 <b>Note:</b>
137 Starring a hotlist will not cc you on any updates.
138 It simply adds the hotlist to your Starred hotlists category on this
139 page so that you can conveniently revisit it.
140 [end]
141
142 </span>
143 [# Link to dismiss the cue card.]
144 [if-any logged_in_user]
145 [if-any read_only][else]
146 <a href="#" title="Don't show this message again" style="margin-left: 1em" class="dismiss_cue x_icon"></a>
147 [end]
148 [end]
149 </td></tr>
150 </table>
151[end]
152[end]
153[end]
154
155
156 <script type="text/javascript" nonce="[nonce]">
157runOnLoad(function() {
158 var dismissLinks = document.querySelectorAll(".dismiss_cue");
159 for (var i = 0; i < dismissLinks.length; ++i) {
160 var dismissCue = dismissLinks[[]i];
161 dismissCue.addEventListener("click", function(event) {
162 _CS_dismissCue("[format "js"][cue][end]");
163 if (this.getAttribute("href") === "#")
164 event.preventDefault();
165 });
166 }
167});
168 </script>
169
170[end]
171[end]