##// END OF EJS Templates
quick-search-bar: fixes #5634
quick-search-bar: fixes #5634

File last commit:

r4490:6bf75c53 default
r4499:9f9ed4f5 stable
Show More
templates.html
242 lines | 7.1 KiB | text/html | HtmlLexer
default-reviewers: introduce new voting rule logic that allows...
r2484 <%text>
<div style="display: none">
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <script>
var CG = new ColorGenerator();
</script>
default-reviewers: introduce new voting rule logic that allows...
r2484 <script id="ejs_gravatarWithUser" type="text/template" class="ejsTemplate">
<%
if (size > 16) {
var gravatar_class = 'gravatar gravatar-large';
} else {
var gravatar_class = 'gravatar';
}
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026
if (tooltip) {
var gravatar_class = gravatar_class + ' tooltip-hovercard';
}
var data_hovercard_alt = username;
default-reviewers: introduce new voting rule logic that allows...
r2484 %>
<%
if (show_disabled) {
var user_cls = 'user user-disabled';
} else {
var user_cls = 'user';
}
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 var data_hovercard_url = pyroutes.url('hovercard_user', {"user_id": user_id})
default-reviewers: introduce new voting rule logic that allows...
r2484 %>
<div class="rc-user">
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 <img class="<%= gravatar_class %>" height="<%= size %>" width="<%= size %>" data-hovercard-url="<%= data_hovercard_url %>" data-hovercard-alt="<%= data_hovercard_alt %>" src="<%- gravatar_url -%>">
default-reviewers: introduce new voting rule logic that allows...
r2484 <span class="<%= user_cls %>"> <%- user_link -%> </span>
</div>
</script>
<script id="ejs_reviewMemberEntry" type="text/template" class="ejsTemplate">
pull-requests: added observers, and fix few problems with versioned comments
r4481 <%
if (create) {
var edit_visibility = 'visible';
} else {
var edit_visibility = 'hidden';
}
reviewers: colorify the groups
r2485
pull-requests: added observers, and fix few problems with versioned comments
r4481 if (member.user_group && member.user_group.vote_rule) {
pull-requests: overhaul of the UX by adding new sidebar...
r4482 var reviewGroup = '<i class="icon-user-group"></i>';
var reviewGroupColor = CG.asRGB(CG.getColor(member.user_group.vote_rule));
pull-requests: added observers, and fix few problems with versioned comments
r4481 } else {
pull-requests: overhaul of the UX by adding new sidebar...
r4482 var reviewGroup = null;
var reviewGroupColor = 'transparent';
pull-requests: added observers, and fix few problems with versioned comments
r4481 }
commits/pr pages various fixes....
r4485 var rule_show = rule_show || false;
if (rule_show) {
var rule_visibility = 'table-cell';
} else {
var rule_visibility = 'none';
}
pull-requests: added observers, and fix few problems with versioned comments
r4481 %>
reviewers: colorify the groups
r2485
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <tr id="reviewer_<%= member.user_id %>" class="reviewer_entry" tooltip="Review Group" data-reviewer-user-id="<%= member.user_id %>">
pull-requests: added observers, and fix few problems with versioned comments
r4481
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <td style="width: 20px">
default-reviewers: introduce new voting rule logic that allows...
r2484 <div class="reviewer_status tooltip" title="<%= review_status_label %>">
pull-requests: fixed old style status icon
r3939 <i class="icon-circle review-status-<%= review_status %>"></i>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 </div>
</td>
pull-requests: added observers, and fix few problems with versioned comments
r4481
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <td>
default-reviewers: introduce new voting rule logic that allows...
r2484 <div id="reviewer_<%= member.user_id %>_name" class="reviewer_name">
<%-
renderTemplate('gravatarWithUser', {
'size': 16,
'show_disabled': false,
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 'tooltip': true,
'username': member.username,
'user_id': member.user_id,
default-reviewers: introduce new voting rule logic that allows...
r2484 'user_link': member.user_link,
'gravatar_url': member.gravatar_link
})
%>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <span class="tooltip presence-state" style="display: none" title="This users is currently at this page">
<i class="icon-eye" style="color: #0ac878"></i>
</span>
default-reviewers: introduce new voting rule logic that allows...
r2484 </div>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 </td>
default-reviewers: introduce new voting rule logic that allows...
r2484
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <td style="width: 10px">
<% if (reviewGroup !== null) { %>
<span class="tooltip" title="Member of review group from rule: `<%= member.user_group.name %>`" style="color: <%= reviewGroupColor %>">
<%- reviewGroup %>
</span>
<% } %>
</td>
<% if (mandatory) { %>
<td style="text-align: right;width: 10px;">
<div class="reviewer_member_mandatory tooltip" title="Mandatory reviewer">
<i class="icon-lock"></i>
</div>
</td>
<% } else { %>
commits/pr pages various fixes....
r4485 <td style="text-align: right;width: 10px;">
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <% if (allowed_to_update) { %>
commits/pr pages various fixes....
r4485 <div class="reviewer_member_remove" onclick="reviewersController.removeReviewMember(<%= member.user_id %>, true)" style="visibility: <%= edit_visibility %>;">
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <i class="icon-remove"></i>
</div>
<% } %>
</td>
<% } %>
</tr>
<tr>
commits/pr pages various fixes....
r4485 <td colspan="4" style="display: <%= rule_visibility %>" class="pr-user-rule-container">
default-reviewers: introduce new voting rule logic that allows...
r2484 <input type="hidden" name="__start__" value="reviewer:mapping">
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <%if (member.user_group && member.user_group.vote_rule) { %>
reviewers: colorify the groups
r2485 <div class="reviewer_reason">
<%if (member.user_group.vote_rule == -1) {%>
- group votes required: ALL
<%} else {%>
- group votes required: <%= member.user_group.vote_rule %>
<%}%>
</div>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <%} %>
reviewers: colorify the groups
r2485
default-reviewers: introduce new voting rule logic that allows...
r2484 <input type="hidden" name="__start__" value="reasons:sequence">
<% for (var i = 0; i < reasons.length; i++) { %>
<% var reason = reasons[i] %>
<div class="reviewer_reason">- <%= reason %></div>
<input type="hidden" name="reason" value="<%= reason %>">
<% } %>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <input type="hidden" name="__end__" value="reasons:sequence">
default-reviewers: introduce new voting rule logic that allows...
r2484
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <input type="hidden" name="__start__" value="rules:sequence">
default-reviewers: introduce new voting rule logic that allows...
r2484 <% for (var i = 0; i < member.rules.length; i++) { %>
<% var rule = member.rules[i] %>
<input type="hidden" name="rule_id" value="<%= rule %>">
<% } %>
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <input type="hidden" name="__end__" value="rules:sequence">
default-reviewers: introduce new voting rule logic that allows...
r2484
pull-requests: overhaul of the UX by adding new sidebar...
r4482 <input id="reviewer_<%= member.user_id %>_input" type="hidden" value="<%= member.user_id %>" name="user_id" />
<input type="hidden" name="mandatory" value="<%= mandatory %>"/>
default-reviewers: introduce new voting rule logic that allows...
r2484
<input type="hidden" name="__end__" value="reviewer:mapping">
pull-requests: overhaul of the UX by adding new sidebar...
r4482 </td>
</tr>
default-reviewers: introduce new voting rule logic that allows...
r2484
</script>
comment-history: fixes/ui changes...
r4408 <script id="ejs_commentVersion" type="text/template" class="ejsTemplate">
<%
if (size > 16) {
var gravatar_class = 'gravatar gravatar-large';
} else {
var gravatar_class = 'gravatar';
}
%>
<%
if (show_disabled) {
var user_cls = 'user user-disabled';
} else {
var user_cls = 'user';
}
%>
<div style='line-height: 20px'>
<img style="margin: -3px 0" class="<%= gravatar_class %>" height="<%= size %>" width="<%= size %>" src="<%- gravatar_url -%>">
<strong><%- user_name -%></strong>, <code>v<%- version -%></code> edited <%- timeago_component -%>
</div>
</script>
sidebar: fixes to comment links, and new hovercard info about a comment.
r4488
<script id="ejs_sideBarCommentHovercard" type="text/template" class="ejsTemplate">
<div>
<% if (is_todo) { %>
<% if (inline) { %>
<strong>Inline</strong> TODO on line: <%= line_no %>
<% if (version_info) { %>
<%= version_info %>
<% } %>
<br/>
File: <code><%- file_name -%></code>
<% } else { %>
sidebar: expose status indicator for general comments which changed review status.
r4490 <% if (review_status) { %>
<i class="icon-circle review-status-<%= review_status %>"></i>
<% } %>
sidebar: fixes to comment links, and new hovercard info about a comment.
r4488 <strong>General</strong> TODO
<% if (version_info) { %>
<%= version_info %>
<% } %>
<% } %>
<% } else { %>
<% if (inline) { %>
<strong>Inline</strong> comment on line: <%= line_no %>
<% if (version_info) { %>
<%= version_info %>
<% } %>
<br/>
File: <code><%- file_name -%></code>
<% } else { %>
sidebar: expose status indicator for general comments which changed review status.
r4490 <% if (review_status) { %>
<i class="icon-circle review-status-<%= review_status %>"></i>
<% } %>
sidebar: fixes to comment links, and new hovercard info about a comment.
r4488 <strong>General</strong> comment
<% if (version_info) { %>
<%= version_info %>
<% } %>
<% } %>
<% } %>
<br/>
Created:
<time class="timeago" title="<%= created_on %>" datetime="<%= datetime %>"><%= $.timeago(datetime) %></time>
default-reviewers: introduce new voting rule logic that allows...
r2484 </div>
sidebar: fixes to comment links, and new hovercard info about a comment.
r4488 </script>
##// END OF EJS Templates
</div>
default-reviewers: introduce new voting rule logic that allows...
r2484 <script>
// registers the templates into global cache
registerTemplates();
</script>
reviewers: colorify the groups
r2485 </%text>