Skip to content

Commit 43df359

Browse files
committed
Help text for changeset linking as popup
To avoid wrapping of a long text on narrow screens, the details for the Changeset linking syntax is now displayed as a pop-up when hovering the mouse over the checkbox's label.
1 parent 0ebf5ce commit 43df359

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Source/lang/strings_english.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ $s_plugin_Source_show_repo_link = 'Repositories';
105105
$s_plugin_Source_show_search_link = 'Search';
106106
$s_plugin_Source_show_repo_stats = 'Repository Statistics';
107107
$s_plugin_Source_enabled_features = 'Enabled Features';
108-
$s_plugin_Source_enable_linking = 'Changeset Linking <span class="small">(<em>&lt;type&gt;:&lt;reponame&gt;:&lt;revision&gt;:</em> where &lt;type&gt; = \'s\' for details, \'v\' for diff)</span>';
108+
$s_plugin_Source_enable_linking = 'Changeset Linking <span class="small">(<em>&lt;type&gt;:&lt;reponame&gt;:&lt;revision&gt;:</em>)';
109+
$s_plugin_Source_enable_linking_info = 'Where &lt;type&gt = \'c\' or \'s\' for Changeset details; \'d\' or \'v\' for Diff; and \'p\' for Pull Request (if supported by the VCS)';
109110
$s_plugin_Source_enable_mapping = 'Branch Mappings';
110111
$s_plugin_Source_enable_resolving = 'Resolve Fixed Issues';
111112
$s_plugin_Source_enable_message = 'Bug Fixed Message';

Source/pages/manage_config_page.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@
9898
</span><br>
9999
<span class="">
100100
<input type="checkbox" name="enable_linking" <?php
101-
check_checked( ON == plugin_config_get( 'enable_linking' ) ) ?>/>
102-
<label for="enable_linking"><?php echo plugin_lang_get( 'enable_linking' ) ?></label>
101+
check_checked( ON == plugin_config_get( 'enable_linking' ) ) ?>
102+
/>
103+
<label for="enable_linking"
104+
title="<?php echo plugin_lang_get( 'enable_linking_info' ) ?>">
105+
<?php echo plugin_lang_get( 'enable_linking' ) ?></label>
103106
</span><br>
104107
<span class="">
105108
<input type="checkbox" name="enable_mapping" <?php

0 commit comments

Comments
 (0)