mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
add some fontawesome icons
This commit is contained in:
parent
08050e56c6
commit
f93bd618ad
12 changed files with 47 additions and 0 deletions
|
@ -61,6 +61,24 @@ class Post(Model):
|
|||
approved = BooleanField(default=False)
|
||||
approved_by = ForeignKeyField(User, null=True)
|
||||
|
||||
def get_random(self):
|
||||
all_posts = Post.select().where(Post.approved == True)
|
||||
return choice([i.id for i in all_posts])
|
||||
|
||||
def get_previous(self):
|
||||
prev = Post.select().where(Post.id == self.id - 1).first()
|
||||
if prev and prev.approved:
|
||||
return prev.id
|
||||
else:
|
||||
return None
|
||||
|
||||
def get_next(self):
|
||||
next = Post.select().where(Post.id == self.id + 1).first()
|
||||
if next and next.approved:
|
||||
return next.id
|
||||
else:
|
||||
return None
|
||||
|
||||
def get_image_path(self, thumbnail=False):
|
||||
save_path_base = path.join(config.DATA_FOLDER, "uploads")
|
||||
if thumbnail:
|
||||
|
|
6
suchwow/static/css/font-awesome.all.min.css
vendored
Normal file
6
suchwow/static/css/font-awesome.all.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
suchwow/static/webfonts/fa-brands-400.ttf
Normal file
BIN
suchwow/static/webfonts/fa-brands-400.ttf
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-brands-400.woff2
Normal file
BIN
suchwow/static/webfonts/fa-brands-400.woff2
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-regular-400.ttf
Normal file
BIN
suchwow/static/webfonts/fa-regular-400.ttf
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-regular-400.woff2
Normal file
BIN
suchwow/static/webfonts/fa-regular-400.woff2
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-solid-900.ttf
Normal file
BIN
suchwow/static/webfonts/fa-solid-900.ttf
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-solid-900.woff2
Normal file
BIN
suchwow/static/webfonts/fa-solid-900.woff2
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-v4compatibility.ttf
Normal file
BIN
suchwow/static/webfonts/fa-v4compatibility.ttf
Normal file
Binary file not shown.
BIN
suchwow/static/webfonts/fa-v4compatibility.woff2
Normal file
BIN
suchwow/static/webfonts/fa-v4compatibility.woff2
Normal file
Binary file not shown.
|
@ -47,6 +47,7 @@
|
|||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="keywords" content="wownero, wow, memes, monero, xmr, cryptocurrency">
|
||||
<link href="/static/css/bulma.min.css" rel="stylesheet">
|
||||
<link href="/static/css/font-awesome.all.min.css" rel="stylesheet">
|
||||
<link href="/static/css/custom.css" rel="stylesheet">
|
||||
<title>SuchWow!</title>
|
||||
</head>
|
||||
|
|
|
@ -12,6 +12,28 @@
|
|||
<li class="is-active"><a href="#" aria-current="page">Post {{ post.id }}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="tabs is-fullwidth">
|
||||
<ul>
|
||||
<li>
|
||||
<a {% if post.get_previous() %}href="{{ url_for('post.read', id=post.get_previous()) }}"{% else %}class="disabled"{% endif %}>
|
||||
<span class="icon"><i class="fas fa-angle-left" aria-hidden="true"></i></span>
|
||||
<span>Previous</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url_for('post.read', id=post.get_random()) }}">
|
||||
<span class="icon"><i class="fas fa-question" aria-hidden="true"></i></span>
|
||||
<span>Random</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if post.get_next() %}href="{{ url_for('post.read', id=post.get_next()) }}"{% else %}class="disabled"{% endif %}>
|
||||
<span>Next</span>
|
||||
<span class="icon"><i class="fas fa-angle-right" aria-hidden="true"></i></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Post Info -->
|
||||
<section class="section">
|
||||
<div class="content">
|
||||
|
|
Loading…
Reference in a new issue