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
08dafe75
Commit
08dafe75
authored
Dec 27, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added news.generate_navbar to generate nav for news
reformat imports
parent
a5f976f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
uitwww/__init__.py
uitwww/__init__.py
+3
-5
No files found.
uitwww/__init__.py
View file @
08dafe75
...
@@ -16,10 +16,7 @@
...
@@ -16,10 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
import
os
import
sys
import
flask
import
flask
import
shutil
from
.
import
actions
from
.
import
actions
from
.
import
auth
from
.
import
auth
...
@@ -29,10 +26,10 @@ from . import navbar
...
@@ -29,10 +26,10 @@ from . import navbar
from
.
import
pages
from
.
import
pages
from
.
import
redirects
from
.
import
redirects
from
.
import
utils
from
.
import
utils
from
.constants
import
BASE_DIR
from
.constants
import
BASE_DIR
from
.src.download.views
import
Downloads
from
.src.download.views
import
Downloads
from
.src.news
.views
import
News
from
.src.news
import
News
,
Get
News
def
create_app
(
data_path
,
debug
=
False
):
def
create_app
(
data_path
,
debug
=
False
):
...
@@ -74,6 +71,7 @@ def create_app(data_path, debug=False):
...
@@ -74,6 +71,7 @@ def create_app(data_path, debug=False):
nav
=
navbar
.
Navbar
()
nav
=
navbar
.
Navbar
()
nav
.
add_generator
(
"download-distros"
,
app
.
download
.
generate_navbar
)
nav
.
add_generator
(
"download-distros"
,
app
.
download
.
generate_navbar
)
nav
.
add_generator
(
"news-categories"
,
app
.
news
.
generate_navbar
)
nav
.
install
(
app
)
nav
.
install
(
app
)
@
app
.
errorhandler
(
403
)
@
app
.
errorhandler
(
403
)
...
...
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