Update template

pull/12/head
beucismis 12 months ago
parent 834004b408
commit 31b79b141b
  1. 11
      ozgursozluk/templates/base.html
  2. 6
      ozgursozluk/templates/macros.html
  3. 2
      ozgursozluk/templates/settings.html

@ -1,7 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="tr">
<head> <head>
<meta charset="utf-8"> <meta charset="UTF-8">
<meta content="origin" name="referrer">
{% block meta %}{% endblock %} {% block meta %}{% endblock %}
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}"> <link rel="icon" href="{{ url_for('static', filename='favicon.png') }}">
@ -12,9 +13,7 @@
{% set filename = '{}.css'.format(request.cookies.get('theme')) %} {% set filename = '{}.css'.format(request.cookies.get('theme')) %}
<link rel="stylesheet" href="{{ url_for('static', filename=filename) }}"> <link rel="stylesheet" href="{{ url_for('static', filename=filename) }}">
{% endif %} {% endif %}
<title> <title>{% block title %}{% endblock %}</title>
{% block title %}{% endblock %}
</title>
</head> </head>
<body> <body>
<header> <header>
@ -22,7 +21,7 @@
<a href="{{ url_for('random') }}">random</a> <a href="{{ url_for('random') }}">random</a>
<a href="{{ url_for('donate') }}">donate</a> <a href="{{ url_for('donate') }}">donate</a>
<a href="{{ url_for('settings') }}">settings</a> <a href="{{ url_for('settings') }}">settings</a>
<a href="{{ source }}" target="_blank">source code</a> <a href="{{ source_code }}" target="_blank">source code</a>
</div> </div>
</header> </header>
<main> <main>

@ -39,9 +39,7 @@
{% macro render_gundem(topic) %} {% macro render_gundem(topic) %}
<a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry"> <a href="{{ url_for('topic', path=topic.path, a='popular') }}" class="entry">
<div style="display: flex; justify-content: space-between;"> <div style="display: flex; justify-content: space-between;">
<div> <div>{{ topic.title }}</div>
{{ topic.title }}
</div>
<div> <div>
{% if topic.pinned %}<small style="opacity: 0.5;">pinned</small>{% endif %} {% if topic.pinned %}<small style="opacity: 0.5;">pinned</small>{% endif %}
{% if topic.entry_count %} {% if topic.entry_count %}
@ -50,4 +48,4 @@
</div> </div>
</div> </div>
</a> </a>
{% endmacro %} {% endmacro %}

@ -73,7 +73,7 @@
v{{ version }} v{{ version }}
- -
last commit: last commit:
<a href="{{ source }}/commit/{{ last_commit }}" target="_blank">{{ last_commit[:8] }}</a> <a href="{{ source_code }}/commit/{{ last_commit }}" target="_blank">{{ last_commit[:8] }}</a>
- -
made with <3 on the <a href="{{ url_for('topic', path='thinkpad-t61--1883047') }}">t61</a> made with <3 on the <a href="{{ url_for('topic', path='thinkpad-t61--1883047') }}">t61</a>
</br></br> </br></br>

Loading…
Cancel
Save