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
3d8b1038
Verified
Commit
3d8b1038
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable naming in live document list view
parent
86d52443
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"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/resint/templates/resint/live_document/list.html
+4
-4
4 additions, 4 deletions
aleksis/apps/resint/templates/resint/live_document/list.html
aleksis/apps/resint/views.py
+1
-1
1 addition, 1 deletion
aleksis/apps/resint/views.py
with
5 additions
and
5 deletions
aleksis/apps/resint/templates/resint/live_document/list.html
+
4
−
4
View file @
3d8b1038
...
...
@@ -9,18 +9,18 @@
{% block page_title %}{% blocktrans %}Live documents{% endblocktrans %}{% endblock %}
{% block content %}
{% if
widge
t_types %}
{% if
documen
t_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
widge
t_types %}
{% for ct, model in
documen
t_types %}
<li>
<a
href=
"{% url 'create_live_document' ct.app_label ct.model %}"
>
{% verbose_name_object model as
widge
t_name %}
{% blocktrans with name=
widge
t_name %}Create {{ name }}{% endblocktrans %}
{% verbose_name_object model as
documen
t_name %}
{% blocktrans with name=
documen
t_name %}Create {{ name }}{% endblocktrans %}
</a>
</li>
{% endfor %}
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/resint/views.py
+
1
−
1
View file @
3d8b1038
...
...
@@ -160,7 +160,7 @@ class LiveDocumentListView(PermissionRequiredMixin, SingleTableView):
def
get_context_data
(
self
,
**
kwargs
:
Any
)
->
dict
[
str
,
Any
]:
context
=
super
().
get_context_data
(
**
kwargs
)
context
[
"
widge
t_types
"
]
=
[
context
[
"
documen
t_types
"
]
=
[
(
ContentType
.
objects
.
get_for_model
(
m
,
False
),
m
)
for
m
in
LiveDocument
.
__subclasses__
()
]
return
context
...
...
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