SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
b5e0559f
Commit
b5e0559f
authored
4 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Turn events list into a modal in message-content
parent
39b7301f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apimail/static/apimail/assets/vue/components/MessageContent.vue
+37
-21
37 additions, 21 deletions
...l/static/apimail/assets/vue/components/MessageContent.vue
with
37 additions
and
21 deletions
apimail/static/apimail/assets/vue/components/MessageContent.vue
+
37
−
21
View file @
b5e0559f
...
@@ -115,27 +115,43 @@
...
@@ -115,27 +115,43 @@
<hr>
<hr>
<div
class=
"text-dark"
>
<div
class=
"text-dark"
>
<b-row>
<b-row>
<b-col
class=
"col-lg-8"
>
<b-col
class=
"col-lg-10"
>
On: {{ message.datetimestamp }}
On: {{ message.datetimestamp }}
<br>
<br>
Subject:
<strong>
{{ message.data.subject }}
</strong>
Subject:
<strong>
{{ message.data.subject }}
</strong>
<br>
<br>
From: {{ message.data.from }}
From: {{ message.data.from }}
<br>
<br>
Recipients: {{ message.data.recipients }}
Recipients: {{ message.data.recipients }}
</b-col>
</b-col>
<b-col
class=
"col-lg-4"
>
<b-col
class=
"col-lg-2"
>
<h5>
Events for this message:
</h5>
<b-button
<ul
class=
"list-unstyled"
>
v-b-modal=
"'message-events-modal' + message.uuid"
<li
v-for=
"event in message.event_set"
>
variant=
"secondary"
<small>
>
{{ event.data.timestamp|toDatestring }}
 
{{ event.data.event }}
<small>
View all events
</small>
<span
v-if=
"event.data.recipient"
>
 
</b-button>
[{{ event.data.recipient }}]
</span>
<b-modal
</small>
:id=
"'message-events-modal' + message.uuid"
</li>
centered
</ul>
hide-header-close
</b-col>
>
<ul
class=
"list-unstyled"
>
<li
v-for=
"event in message.event_set"
>
<small>
{{ event.data.timestamp|toDatestring }}
 
{{ event.data.event }}
<span
v-if=
"event.data.recipient"
>
 
[{{ event.data.recipient }}]
</span>
</small>
</li>
</ul>
<
template
v-slot:modal-footer=
"{ close, }"
>
<b-button
size=
"sm"
variant=
"info"
@
click=
"close()"
>
Close
</b-button>
</
template
>
</b-modal>
</b-col>
</b-row>
</b-row>
</div>
</div>
</template>
</template>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment