This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
update HTML views using UIkit
- Loading branch information
Showing
40 changed files
with
1,005 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import os | ||
from flask import Flask | ||
from flask.ext.sqlalchemy import SQLAlchemy | ||
from config import STATIC_URL_PATH | ||
|
||
app = Flask(__name__) | ||
app = Flask(__name__, static_url_path=STATIC_URL_PATH) | ||
app.config.from_object(os.getenv('APP_SETTINGS', "config.DefaultConfig")) | ||
db = SQLAlchemy(app) | ||
|
||
from app import models | ||
from app import views | ||
from app.context_processors import inject_all_project_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from app import app | ||
from app.models import Project | ||
|
||
|
||
@app.context_processor | ||
def inject_all_project_data(): | ||
""" | ||
returns all Project names and ID's from the database to build the sidebar | ||
:return: | ||
""" | ||
projects = Project.query.all() | ||
result = [] | ||
for p in projects: | ||
p_dict = dict() | ||
p_dict["id"] = p.id | ||
p_dict["name"] = p.name | ||
p_dict["config_templates"] = [] | ||
|
||
for cfg in p.configtemplates.all(): | ||
p_dict["config_templates"].append({ | ||
"id": cfg.id, | ||
"name": cfg.name | ||
}) | ||
|
||
result.append(p_dict) | ||
|
||
return dict(all_project_data=result) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.4 KB
app/static/images/how_to/view_config_template-template_value_set_empty.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.