Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Resint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Resint
Commits
86d52443
Verified
Commit
86d52443
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Show live document creation button only if usable
parent
6a15c1b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!36
Resolve "Button "Create live document" does nothing"
Pipeline
#49587
passed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/resint/templates/resint/live_document/list.html
+21
-14
21 additions, 14 deletions
aleksis/apps/resint/templates/resint/live_document/list.html
with
26 additions
and
14 deletions
CHANGELOG.rst
+
5
−
0
View file @
86d52443
...
...
@@ -14,6 +14,11 @@ Added
* Open poster group menu entries in new tab.
Fixed
~~~~~
* Button for creation of live documents was there even if there weren't any live document types registered.
`2.0`_ - 2021-12-27
-------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/resint/templates/resint/live_document/list.html
+
21
−
14
View file @
86d52443
...
...
@@ -9,21 +9,28 @@
{% block page_title %}{% blocktrans %}Live documents{% endblocktrans %}{% endblock %}
{% block content %}
<a
class=
"btn green waves-effect waves-light dropdown-trigger"
href=
"#"
data-target=
"widget-dropdown"
>
<i
class=
"material-icons left"
>
add
</i>
{% trans "Create live document" %}
</a>
{% if widget_types %}
<a
class=
"btn green waves-effect waves-light dropdown-trigger"
href=
"#"
data-target=
"widget-dropdown"
>
<i
class=
"material-icons left"
>
add
</i>
{% trans "Create live document" %}
</a>
<ul
id=
"widget-dropdown"
class=
"dropdown-content"
>
{% for ct, model in widget_types %}
<li>
<a
href=
"{% url 'create_live_document' ct.app_label ct.model %}"
>
{% verbose_name_object model as widget_name %}
{% blocktrans with name=widget_name %}Create {{ name }}{% endblocktrans %}
</a>
</li>
{% endfor %}
</ul>
<ul
id=
"widget-dropdown"
class=
"dropdown-content"
>
{% for ct, model in widget_types %}
<li>
<a
href=
"{% url 'create_live_document' ct.app_label ct.model %}"
>
{% verbose_name_object model as widget_name %}
{% blocktrans with name=widget_name %}Create {{ name }}{% endblocktrans %}
</a>
</li>
{% endfor %}
</ul>
{% else %}
<figure
class=
"alert primary"
>
<i
class=
"material-icons left"
>
info
</i>
{% trans "There is no app installed which registers any live document types." %}
</figure>
{% endif %}
{% render_table table %}
{% endblock %}
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