Commit 6aa66e99 authored by Justin Ho's avatar Justin Ho

Minor UI refinements to Jira issues list

- Add external-link icon to Jira issue title
- Hide comments for Jira issues
- Add "in Jira" text next to author name
parent 4e2f4a62
......@@ -26,6 +26,7 @@ import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
i18n: {
openedAgo: __('opened %{timeAgoString} by %{user}'),
openedAgoJira: __('opened %{timeAgoString} by %{user} in Jira'),
},
components: {
IssueAssignees,
......@@ -238,6 +239,11 @@ export default {
data-testid="issuable-title"
>
{{ issuable.title }}
<gl-icon
v-if="isJiraIssue"
name="external-link"
class="gl-vertical-align-text-bottom"
/>
</gl-link>
</span>
<span v-if="issuable.has_tasks" class="ml-1 task-status d-none d-sm-inline-block">
......@@ -258,7 +264,9 @@ export default {
<span data-testid="openedByMessage" class="d-none d-sm-inline-block mr-1">
&middot;
<gl-sprintf :message="$options.i18n.openedAgo">
<gl-sprintf
:message="isJiraIssue ? $options.i18n.openedAgoJira : $options.i18n.openedAgo"
>
<template #timeAgoString>
<span>{{ issuableCreatedAt }}</span>
</template>
......@@ -325,6 +333,7 @@ export default {
<!-- Issuable meta -->
<div class="flex-shrink-0 d-flex flex-column align-items-end justify-content-center">
<div class="controls d-flex">
<span v-if="isJiraIssue">&nbsp;</span>
<span v-if="isClosed" class="issuable-status">{{ __('CLOSED') }}</span>
<issue-assignees
......@@ -349,6 +358,7 @@ export default {
</template>
<gl-link
v-if="!isJiraIssue"
v-gl-tooltip
class="ml-2 js-notes"
:href="`${issuable.web_url}#notes`"
......
......@@ -27938,6 +27938,9 @@ msgstr ""
msgid "opened %{timeAgoString} by %{user}"
msgstr ""
msgid "opened %{timeAgoString} by %{user} in Jira"
msgstr ""
msgid "opened %{timeAgo}"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment