Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redeleitsystem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redl
redeleitsystem
Commits
dd06fbae
Commit
dd06fbae
authored
9 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Added local ttf for icon-font. Fixes
#1
parent
b96335f7
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
server.py
+5
-1
5 additions, 1 deletion
server.py
static/font/icon-font.ttf
+0
-0
0 additions, 0 deletions
static/font/icon-font.ttf
templates/icon-font.css
+1
-1
1 addition, 1 deletion
templates/icon-font.css
templates/layout.html
+1
-1
1 addition, 1 deletion
templates/layout.html
with
7 additions
and
3 deletions
server.py
+
5
−
1
View file @
dd06fbae
#!/usr/bin/env python3
from
flask
import
Flask
,
g
,
current_app
,
request
,
session
,
flash
,
redirect
,
url_for
,
abort
from
flask
import
Flask
,
g
,
current_app
,
request
,
session
,
flash
,
redirect
,
url_for
,
abort
,
render_template
,
Response
from
flask.ext.login
import
login_user
,
logout_user
,
login_required
,
current_user
from
flask.ext.principal
import
Principal
,
Identity
,
AnonymousIdentity
,
identity_changed
,
identity_loaded
,
UserNeed
,
RoleNeed
from
flask.ext.script
import
Manager
...
...
@@ -116,6 +116,10 @@ def register():
return
redirect
(
url_for
(
"
.login
"
))
return
render_layout
(
"
register.html
"
,
form
=
form
)
@app.route
(
"
/icon-font.css
"
)
def
icon_font
():
return
Response
(
render_template
(
"
icon-font.css
"
),
mimetype
=
"
text/css
"
)
@identity_loaded.connect_via
(
app
)
def
on_identity_loaded
(
sender
,
identity
):
# Set the identity user object
...
...
This diff is collapsed.
Click to expand it.
static/font/icon-font.ttf
0 → 100644
+
0
−
0
View file @
dd06fbae
File added
This diff is collapsed.
Click to expand it.
static/font
/icon-font.css
→
templates
/icon-font.css
+
1
−
1
View file @
dd06fbae
...
...
@@ -2,7 +2,7 @@
font-family
:
'Material Icons'
;
font-style
:
normal
;
font-weight
:
400
;
src
:
local
(
'Material Icons'
),
local
(
'MaterialIcons-Regular'
),
url(
https://fonts.gstatic.com/s/materialicons/v7/2fcrYFNaTjcS6g4U3t-Y5StnKWgpfO2iSkLzTz-AABg.ttf
)
format
(
'truetype'
);
src
:
local
(
'Material Icons'
),
local
(
'MaterialIcons-Regular'
),
url(
{{ url_for('static', filename='font/icon-font.ttf')
}
}
)
format
(
'truetype'
);
}
.material-icons
{
...
...
This diff is collapsed.
Click to expand it.
templates/layout.html
+
1
−
1
View file @
dd06fbae
...
...
@@ -7,7 +7,7 @@
<meta
name=
"mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"description"
content=
"moderation tool for handling speaking order"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/material.red-blue.min.css') }}"
/>
<link
rel=
"stylesheet"
href=
"{{ url_for('
static', filename='font/icon-font.css
') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('
icon_font
') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/style.css') }}"
/>
<script
src=
"{{ url_for('static', filename='js/material.min.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/sorttable.js') }}"
></script>
...
...
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