Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Luca (strifel)
uffd
Commits
25be5fc6
Verified
Commit
25be5fc6
authored
4 years ago
by
morre
Browse files
Options
Downloads
Patches
Plain Diff
Add configurable button text for modals
parent
c3e1da35
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
uffd/default_config.cfg
+6
-1
6 additions, 1 deletion
uffd/default_config.cfg
uffd/services/templates/overview.html
+1
-1
1 addition, 1 deletion
uffd/services/templates/overview.html
uffd/services/views.py
+1
-0
1 addition, 0 deletions
uffd/services/views.py
with
8 additions
and
2 deletions
uffd/default_config.cfg
+
6
−
1
View file @
25be5fc6
...
...
@@ -109,7 +109,12 @@ SERVICES=[
# # Infos are small/medium amounts of information displayed in a modal
# # dialog. All matching items are visible.
# 'infos': [
# {'title': 'Documentation', 'html': '<p>Some information about the service as html</p>', 'required_group': 'users'},
# {
# 'title': 'uffd',
# 'button_text': 'Documentation' # Defaults to the title if not set
# 'html': '<p>Some information about the service as html</p>',
# 'required_group': 'users',
# },
# ],
# # Links to external sites, all matching items are visible
# 'links': [
...
...
This diff is collapsed.
Click to expand it.
uffd/services/templates/overview.html
+
1
−
1
View file @
25be5fc6
...
...
@@ -41,7 +41,7 @@
<div
class=
"list-group-item"
><i
class=
"fas fa-users"
{{
iconstyle
}}
></i>
{{ group.name }}
</div>
{% endfor %}
{% for info in service.infos %}
<a
href=
"#"
class=
"list-group-item list-group-item-action"
data-toggle=
"modal"
data-target=
"#info-modal-{{ info.id }}"
><i
class=
"fas fa-info-circle"
{{
iconstyle
}}
></i>
{{ info.
title
}}
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
data-toggle=
"modal"
data-target=
"#info-modal-{{ info.id }}"
><i
class=
"fas fa-info-circle"
{{
iconstyle
}}
></i>
{{ info.
button_text
}}
</a>
{% endfor %}
{% for link in service.links %}
<a
href=
"{{ link.url }}"
class=
"list-group-item list-group-item-action"
><i
class=
"fas fa-external-link-alt"
{{
iconstyle
}}
></i>
{{ link.title }}
</a>
...
...
This diff is collapsed.
Click to expand it.
uffd/services/views.py
+
1
−
0
View file @
25be5fc6
...
...
@@ -53,6 +53,7 @@ def get_services(user=None):
continue
info
=
{
'
title
'
:
info_data
[
'
title
'
],
'
button_text
'
:
info_data
.
get
(
'
button_text
'
,
info_data
[
'
title
'
]),
'
html
'
:
info_data
[
'
html
'
],
'
id
'
:
'
%d-%d
'
%
(
len
(
services
),
len
(
service
[
'
infos
'
])),
}
...
...
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