diff --git a/javascripts/theme.js b/javascripts/theme.js index c5ef22a..84f2cd3 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -131,6 +131,13 @@ function alter_new_issue_page() { }); } +function alter_issues_index_page() { + $('td.author a, td.assigned_to a').each(function(idx, elem) { + // remove suffixes used by people to indicate they're off. + $(elem).text($(elem).text().replace(/->.*/, '').replace(/→.*/, '').replace(/\(.*/, '').trim()); + }); +} + function alter_issue_show_page() { if ($('.attachments_fields').length) { var observer = new MutationObserver(function(mutations) { @@ -329,6 +336,9 @@ $(function() { if ($('body.controller-issues.action-show').length == 1) { alter_issue_show_page(); } + if ($('body.controller-issues.action-index').length == 1) { + alter_issues_index_page(); + } // custom features, enabled on user request