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
2b802a50
Commit
2b802a50
authored
6 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Improvements
parent
2875cbbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
production/models.py
+6
-0
6 additions, 0 deletions
production/models.py
production/templates/production/production.html
+66
-13
66 additions, 13 deletions
production/templates/production/production.html
with
72 additions
and
13 deletions
production/models.py
+
6
−
0
View file @
2b802a50
...
...
@@ -82,6 +82,12 @@ class ProductionStream(models.Model):
def
notification_name
(
self
):
return
self
.
submission
.
arxiv_identifier_w_vn_nr
@property
def
latest_activity
(
self
):
if
self
.
events
.
last
():
return
self
.
events
.
last
().
noted_on
return
self
.
closed
or
self
.
opened
class
ProductionEvent
(
models
.
Model
):
stream
=
models
.
ForeignKey
(
ProductionStream
,
on_delete
=
models
.
CASCADE
,
related_name
=
'
events
'
)
...
...
This diff is collapsed.
Click to expand it.
production/templates/production/production.html
+
66
−
13
View file @
2b802a50
...
...
@@ -23,6 +23,11 @@
<div
class=
"tab-nav-container"
>
<div
class=
"tab-nav-inner"
>
<ul
class=
"nav btn-group personal-page-nav"
role=
"tablist"
>
{% if perms.scipost.can_view_all_production_streams %}
<li
class=
"nav-item btn btn-outline-secondary"
>
<a
href=
"#summary"
class=
"nav-link"
data-toggle=
"tab"
>
Summary
</a>
</li>
{% endif %}
<li
class=
"nav-item btn btn-outline-secondary"
>
<a
href=
"#streams"
class=
"nav-link active"
data-toggle=
"tab"
>
{{ perms.scipost.can_assign_production_officer|yesno:"Streams,My Streams" }}
</a>
</li>
...
...
@@ -40,8 +45,68 @@
</div>
</div>
<div
class=
"tab-content"
>
{% if perms.scipost.can_view_all_production_streams %}
<div
class=
"tab-pane"
id=
"summary"
role=
"tabpanel"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<h2
class=
"highlight"
>
Streams summary
</h2>
<table
class=
"table"
>
<thead>
<tr>
<th>
Submission
</th>
<th>
Status
</th>
<th
class=
"py-1"
>
Latest activity
<br>
Submission accepted
</th>
<th>
Has supervisor
</th>
<th>
Has officer
</th>
</tr>
</thead>
<tbody>
{% for stream in streams %}
<tr>
<td>
<a
href=
"{{ stream.get_absolute_url }}"
>
{{ stream.submission.title }}
</a>
<br>
by {{ stream.submission.author_list }}
</td>
<td>
<div
class=
"label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm"
>
{{ stream.get_status_display }}
</div>
</td>
<td>
{{ stream.latest_activity|timesince }} ago
<br>
<span
class=
"text-muted"
>
{{ stream.opened|timesince }} ago
</span>
</td>
<td>
{% if stream.supervisor %}
<i
class=
"fa fa-check text-success"
></i>
{{ stream.supervisor }}
{% else %}
<i
class=
"fa fa-times text-danger"
></i>
{% endif %}
</td>
<td>
{% if stream.officer %}
<i
class=
"fa fa-check text-success"
></i>
{{ stream.officer }}
{% else %}
<i
class=
"fa fa-times text-danger"
></i>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
<div
class=
"tab-pane active"
id=
"streams"
role=
"tabpanel"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
...
...
@@ -52,18 +117,6 @@
<div
class=
"row"
>
<div
class=
"col-6"
>
{% if perms.scipost.can_assign_production_officer %}
<h3>
Stream statuses
</h3>
<ul>
{% for stream in streams %}
<li
class=
"pb-2"
>
<div><strong>
{{ stream.submission.title }}
</strong></div>
<div
class=
"label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm"
>
{{ stream.get_status_display }}
</div>
</li>
{% endfor %}
</ul>
<hr>
{% endif %}
<ul
class=
"list-unstyled"
data-target=
"active-list"
>
{% for stream in streams %}
<li
class=
"px-2 py-1"
>
...
...
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