ソースを参照

tweaks i forgot what

cube 3 日 前
コミット
b2e3633e81
共有4 個のファイルを変更した13 個の追加11 個の削除を含む
  1. 6
    1
      README.md
  2. 3
    3
      myriad/templates/base.html
  3. 1
    4
      myriad/templates/groups.html
  4. 3
    3
      myriad/templates/page.html

+ 6
- 1
README.md ファイルの表示

@@ -51,4 +51,9 @@ MISC_UPLOAD_FOLDER = 'myriad/static/misc' # where other small images will be sto
51 51
 
52 52
 # dependencies
53 53
 
54
-- Flask
54
+- Flask
55
+
56
+# preview
57
+
58
+- homepage with pinned members
59
+![homepage with pinned members](https://ibb.co/0Vy62Q0d)

+ 3
- 3
myriad/templates/base.html ファイルの表示

@@ -23,15 +23,15 @@
23 23
     {% if g.user %}<div class="navitem">> <a href="{{ url_for('blog.new') }}">New Post</a></div>{% endif %}
24 24
     <div class="navitem">> <a href="{{ url_for('blog.blog') }}">View All Posts</a></div>
25 25
 
26
+    {% if config["REGISTRATION"] == True %}
26 27
     <div class="heading">Administration</div>
27 28
     {% if g.user %}
28 29
       <div class="navitem">> <a href="{{ url_for('auth.logout') }}">Log out</a></div>
29 30
     {% else %}
30
-      {% if config["REGISTRATION"] == True %}
31
-        <div class="navitem">> <a href="{{ url_for('auth.register') }}">Register</a></div>
32
-      {% endif %}
31
+      <div class="navitem">> <a href="{{ url_for('auth.register') }}">Register</a></div>
33 32
       <div class="navitem">> <a href="{{ url_for('auth.login') }}">Log in</a></div>
34 33
     {% endif %}
34
+    {% endif %}
35 35
 
36 36
     </div>
37 37
 

+ 1
- 4
myriad/templates/groups.html ファイルの表示

@@ -1,8 +1,5 @@
1 1
 {% extends 'base.html' %}
2
-
3
-{% block header %}
4
-  <div class="title">{% block title %}Groups{% endblock %}</div>
5
-{% endblock %}
2
+{% block title %}Groups{% endblock %}
6 3
 
7 4
 {% block content %}
8 5
 

+ 3
- 3
myriad/templates/page.html ファイルの表示

@@ -10,7 +10,7 @@
10 10
     {% endif %}
11 11
         <div class="title">{{member[3]}}</div>
12 12
         <div class="maintext">
13
-            {{member[5]}}
13
+            {{member[5]|safe}}
14 14
         </div>
15 15
         <br class="clear" />
16 16
 
@@ -19,10 +19,10 @@
19 19
         <div id="blog">
20 20
             {% for post in blog %}
21 21
             <div class="post">
22
-                <div class="title">{{post[3]}}</div>
22
+                <div class="title">{{post[3]|safe}}</div>
23 23
                 <div class="timestamp">{{post[2]}}</div>
24 24
                 <div class="content">
25
-                    {{post[4]}}
25
+                    {{post[4]|safe}}
26 26
                 </div>
27 27
             </div>
28 28
             {% endfor %}