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'; ...@@ -26,6 +26,7 @@ import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default { export default {
i18n: { i18n: {
openedAgo: __('opened %{timeAgoString} by %{user}'), openedAgo: __('opened %{timeAgoString} by %{user}'),
openedAgoJira: __('opened %{timeAgoString} by %{user} in Jira'),
}, },
components: { components: {
IssueAssignees, IssueAssignees,
...@@ -238,6 +239,11 @@ export default { ...@@ -238,6 +239,11 @@ export default {
data-testid="issuable-title" data-testid="issuable-title"
> >
{{ issuable.title }} {{ issuable.title }}
<gl-icon
v-if="isJiraIssue"
name="external-link"
class="gl-vertical-align-text-bottom"
/>
</gl-link> </gl-link>
</span> </span>
<span v-if="issuable.has_tasks" class="ml-1 task-status d-none d-sm-inline-block"> <span v-if="issuable.has_tasks" class="ml-1 task-status d-none d-sm-inline-block">
...@@ -258,7 +264,9 @@ export default { ...@@ -258,7 +264,9 @@ export default {
<span data-testid="openedByMessage" class="d-none d-sm-inline-block mr-1"> <span data-testid="openedByMessage" class="d-none d-sm-inline-block mr-1">
&middot; &middot;
<gl-sprintf :message="$options.i18n.openedAgo"> <gl-sprintf
:message="isJiraIssue ? $options.i18n.openedAgoJira : $options.i18n.openedAgo"
>
<template #timeAgoString> <template #timeAgoString>
<span>{{ issuableCreatedAt }}</span> <span>{{ issuableCreatedAt }}</span>
</template> </template>
...@@ -325,6 +333,7 @@ export default { ...@@ -325,6 +333,7 @@ export default {
<!-- Issuable meta --> <!-- Issuable meta -->
<div class="flex-shrink-0 d-flex flex-column align-items-end justify-content-center"> <div class="flex-shrink-0 d-flex flex-column align-items-end justify-content-center">
<div class="controls d-flex"> <div class="controls d-flex">
<span v-if="isJiraIssue">&nbsp;</span>
<span v-if="isClosed" class="issuable-status">{{ __('CLOSED') }}</span> <span v-if="isClosed" class="issuable-status">{{ __('CLOSED') }}</span>
<issue-assignees <issue-assignees
...@@ -349,6 +358,7 @@ export default { ...@@ -349,6 +358,7 @@ export default {
</template> </template>
<gl-link <gl-link
v-if="!isJiraIssue"
v-gl-tooltip v-gl-tooltip
class="ml-2 js-notes" class="ml-2 js-notes"
:href="`${issuable.web_url}#notes`" :href="`${issuable.web_url}#notes`"
......
...@@ -27938,6 +27938,9 @@ msgstr "" ...@@ -27938,6 +27938,9 @@ msgstr ""
msgid "opened %{timeAgoString} by %{user}" msgid "opened %{timeAgoString} by %{user}"
msgstr "" msgstr ""
msgid "opened %{timeAgoString} by %{user} in Jira"
msgstr ""
msgid "opened %{timeAgo}" msgid "opened %{timeAgo}"
msgstr "" 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