This repository was archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoptions.html
82 lines (81 loc) · 5 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../css/options.css">
</head>
<body>
<form>
<div class="pts row">
<div class="w40p txt-center browser-style">
<input type="checkbox" id="display_source_and_target_branches">
</div>
<div class="fluid">
<label for="display_source_and_target_branches">Display source and target branches</label>
</div>
</div>
<div class="pll pbs pts browser-style man" id="display-source-target-branches-options">
<input type="checkbox" id="enable_buttons_to_copy_source_and_target_branches_name"> <label for="enable_buttons_to_copy_source_and_target_branches_name">Enable buttons allowing to copy source and target branches name</label>
</div>
<div class="pts row">
<div class="w40p txt-center browser-style">
<input type="checkbox" id="enable_button_to_copy_mr_info">
</div>
<div class="fluid">
<label for="enable_button_to_copy_mr_info">Enable button allowing to copy Merge Request information</label>
</div>
</div>
<div class="pbs pll">
<small class="txt-muted">Useful when sharing the Merge Request on e.g instant messaging softwares</small>
</div>
<div class="pll pts pbs" id="copy-mr-info-options">
<div class="pbs"><label for="copy_mr_info_format">Text format:</label></div>
<div><textarea class="browser-style w100 monospaced man pas" id="copy_mr_info_format" rows="6" required></textarea></div>
<div class="pts"><small class="txt-muted">Available placeholders: <code>{MR_TITLE}</code>, <code>{MR_ID}</code>, <code>{MR_URL}</code>, <code>{MR_DIFFS_URL}</code>, <code>{MR_AUTHOR_NAME}</code>, <code>{MR_STATUS}</code>, <code>{MR_SOURCE_BRANCH_NAME}</code>, <code>{MR_TARGET_BRANCH_NAME}</code>, <code>{MR_JIRA_TICKET_ID}</code>, <code>{MR_JIRA_TICKET_URL}</code></small></div>
</div>
<div class="pts row">
<div class="w40p txt-center browser-style">
<input type="checkbox" id="enable_jira_ticket_link">
</div>
<div class="fluid">
<label for="enable_jira_ticket_link">Enable Jira ticket link</label>
</div>
</div>
<div class="pll pbs" id="jira-ticket-link-options">
<div class="pbs"><small class="txt-muted">The ticket ID is automatically searched for in the source branch name and in the Merge Request title. The position of the ticket ID in these locations doesn't matter. Only the first uppercase ticket ID occurence will be matched.</small></div>
<div class="browser-style pbs man"><label for="base_jira_url">Base Jira URL:</label></div>
<div class="browser-style man pbm"><input type="url" id="base_jira_url" class="w100 man pas" required></div>
<div class="pbs">What should be displayed as the label of the Jira ticket link?</div>
<div class="pll">
<div class="browser-style man pbs"><input type="radio" required name="jira_ticket_link_label_type" value="ticket_id" id="jira_ticket_link_label_type_ticket_id" class="man"> <label for="jira_ticket_link_label_type_ticket_id">The ticket ID</label></div>
<div class="browser-style man"><input type="radio" required name="jira_ticket_link_label_type" value="icon" id="jira_ticket_link_label_type_icon" class="man"> <label for="jira_ticket_link_label_type_icon">An icon</label></div>
</div>
</div>
<div class="pts row">
<div class="w40p txt-center browser-style">
<input type="checkbox" id="enable_button_to_toggle_wip_status">
</div>
<div class="fluid">
<label for="enable_button_to_toggle_wip_status">Enable button allowing to toggle WIP status</label>
</div>
</div>
<div class="pbs pll">
<small class="txt-muted">This feature is automatically disabled if logged-out</small>
</div>
<div class="pts row">
<div class="w40p txt-center browser-style">
<input type="checkbox" id="enable_unresolved_discussions_indicator">
</div>
<div class="fluid">
<label for="enable_unresolved_discussions_indicator">Show an indicator when there's unresolved discussion(s) left</label>
</div>
</div>
<div class="pbs pll">
<small class="txt-muted">Note the <strong>All discussions must be resolved</strong> option must be enabled for this feature to be working as expected. This option is enabled per project and is located in <strong>Settings > General > Merge Requests > Merge checks</strong>.</small>
</div>
<div class="txt-center pts pbs"><button type="submit" class="browser-style">Save preferences</button></div>
</form>
<script src="../js/preferences.js"></script>
<script src="../js/options.js"></script>
</body>
</html>