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
38099a6f
Commit
38099a6f
authored
1 year ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
add card class to nomination detail elements
parent
b5755fa3
No related branches found
No related tags found
1 merge request
!58
[Fellowship Nominations] Rework the fellowship nomination system and UI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scipost_django/colleges/templates/colleges/_hx_nomination_li_contents.html
+33
-52
33 additions, 52 deletions
...lleges/templates/colleges/_hx_nomination_li_contents.html
with
33 additions
and
52 deletions
scipost_django/colleges/templates/colleges/_hx_nomination_li_contents.html
+
33
−
52
View file @
38099a6f
...
...
@@ -86,74 +86,55 @@
<div
class=
"row mb-0"
>
{% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %}
{% comment %} or "active_senior_fellow" in user_roles {% endcomment %}
{% if "edadmin" in user_roles %}
<div
class=
"col-12 col-md mb-3"
>
<details
class=
"border"
>
<summary
class=
"p-2 bg-light d-block list-triangle"
>
Events
</summary>
{% include 'colleges/_nomination_events_table.html' with nomination=nomination %}
<details
class=
"card"
>
<summary
class=
"card-header d-flex flex-row justify-content-between list-triangle"
>
<span>
Events
</span>
<span>
({{ nomination.events.all.count }})
</span>
</summary>
<div
class=
"card-body"
>
{% include 'colleges/_nomination_events_table.html' with nomination=nomination %}
</div>
</details>
</div>
{% endif %}
<div
class=
"col-12 col-md mb-3"
>
<details
class=
"border"
>
<summary
class=
"p-2 bg-light d-block list-triangle"
>
Comments
</summary>
<div
class=
"p-3"
>
<details
class=
"card"
>
<summary
class=
"card-header d-flex flex-row justify-content-between list-triangle"
>
<span>
Comments
</span>
<span>
({{ nomination.comments.all.count }})
</span>
</summary>
<div
class=
"card-body"
>
<div
class=
"p-3"
>
{% if nomination.nominator_comments %}
<div
class=
"row"
>
<div
class=
"fs-6"
>
Nominator comments:
</div>
<div>
<em>
{{ nomination.nominator_comments }}
</em>
{% if nomination.nominator_comments %}
<div
class=
"row"
>
<div
class=
"fs-6"
>
Nominator comments:
</div>
<div>
<em>
{{ nomination.nominator_comments }}
</em>
</div>
</div>
</div>
<hr
class=
"text-muted"
/>
{% endif %}
<hr
class=
"text-muted"
/>
{% endif %}
<div
id=
"nomination-{{
nomination
.
id
}}-comments
"
hx-
get=
"{% url 'colleges:_hx_nomination_comments' nomination_id=nomination.id %}"
hx-trigger=
"intersect once"
>
</div>
<div
id=
"nomination-{{ nomination.id }}-comments"
hx-get=
"{% url 'colleges:_hx_nomination_comments'
nomination
_
id
=nomination.id %}
"
hx-
trigger=
"intersect once"
></div>
</div>
</div>
</details>
</div>
</div>
<d
iv
class=
"card"
>
<
div
class=
"card-header"
>
Voting Rounds
</
div
>
<div
class=
"card-body
p-0
"
>
<d
etails
open
class=
"card"
>
<
summary
class=
"card-header
list-triangle
"
>
Voting Rounds
</
summary
>
<div
class=
"card-body"
>
<div
hx-get=
"{% url 'colleges:_hx_nomination_voting_rounds_tab' nomination_id=nomination.id round_id=nomination.latest_voting_round.id|default:0 %}"
hx-trigger=
"intersect once"
></div>
</div>
</div>
{% comment %} {% if "edadmin" in user_roles %}
<div
class=
"row"
>
<div
class=
"col"
>
<details
class=
"border"
>
<summary
class=
"p-2 bg-light d-block list-triangle"
>
All voting rounds
</summary>
<div
class=
"p-3"
>
{% for round in nomination.voting_rounds.all %}
<details>
<summary
class=
"d-block list-triangle"
>
#{{ forloop.counter0|add:1 }} from {{ round.voting_opens|date:"Y-m-d" }} to {{ round.voting_deadline|date:"Y-m-d" }}
</summary>
{% include "colleges/_hx_voting_round_results.html" with voting_round=round %}
</details>
</details>
{% empty %}
<div>
No voting round
</div>
{% endfor %}
</details>
</div>
</div>
{% else %}
{% include "colleges/_hx_voting_round_results.html" with voting_round=nomination.latest_voting_round %}
{% endif %} {% endcomment %}
</div>
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