Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
5246834e
Commit
5246834e
authored
Oct 18, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite the navbar code
parent
1422fcdf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
uitwww/data/navbar.yml
uitwww/data/navbar.yml
+1
-1
uitwww/navbar.py
uitwww/navbar.py
+1
-1
uitwww/templates/layout.html
uitwww/templates/layout.html
+0
-1
No files found.
uitwww/data/navbar.yml
View file @
5246834e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
-
name
:
Smartphone e tablet
-
name
:
Smartphone e tablet
endpoint
:
pages.scopri-ubuntu_ubuntu-touch
endpoint
:
pages.scopri-ubuntu_ubuntu-touch
-
name
:
2
0.04 LTS Focal Fossa
-
name
:
2
2.04 LTS Jammy Jellyfish
endpoint
:
pages.scopri-ubuntu_nuovo-rilascio
endpoint
:
pages.scopri-ubuntu_nuovo-rilascio
-
name
:
Derivate
-
name
:
Derivate
...
...
uitwww/navbar.py
View file @
5246834e
...
@@ -56,7 +56,7 @@ class Navbar:
...
@@ -56,7 +56,7 @@ class Navbar:
def
install
(
self
,
app
):
def
install
(
self
,
app
):
"""Install this navbar on the app"""
"""Install this navbar on the app"""
raw
=
pkg_resources
.
resource_string
(
"uitwww"
,
"data/navbar.yml"
)
raw
=
pkg_resources
.
resource_string
(
"uitwww"
,
"data/navbar.yml"
)
config
=
yaml
.
safe_
load
(
raw
.
decode
(
"utf-8"
))
config
=
yaml
.
load
(
raw
.
decode
(
"utf-8"
))
self
.
_prepare_navbar_cache
(
config
,
[])
self
.
_prepare_navbar_cache
(
config
,
[])
# Add the _navbars variable to the templates
# Add the _navbars variable to the templates
...
...
uitwww/templates/layout.html
View file @
5246834e
...
@@ -88,7 +88,6 @@
...
@@ -88,7 +88,6 @@
<ul
class=
"right"
>
<ul
class=
"right"
>
<li><a
href=
"https://www.facebook.com/ubuntu.it"
>
Facebook
</a></li>
<li><a
href=
"https://www.facebook.com/ubuntu.it"
>
Facebook
</a></li>
<li><a
href=
"https://twitter.com/ubuntuit"
>
Twitter
</a></li>
<li><a
href=
"https://twitter.com/ubuntuit"
>
Twitter
</a></li>
<li><a
href=
"https://www.youtube.com/ubuntuitpromozione"
>
YouTube
</a></li>
<li><a
href=
"https://www.youtube.com/ubuntuitpromozione"
>
YouTube
</a></li>
<li><a
href=
"https://telegram.me/ubuntuit"
>
Telegram
</a></li>
<li><a
href=
"https://telegram.me/ubuntuit"
>
Telegram
</a></li>
</ul>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment