SongZihuan 2 лет назад
Родитель
Сommit
85f3673f3a
5 измененных файлов с 24 добавлено и 1 удалено
  1. 2 1
      .gitignore
  2. 1 0
      configure/__init__.py
  3. 4 0
      static/styles/base.css
  4. 8 0
      templates/base.html
  5. 9 0
      templates/index/hello.html

+ 2 - 1
.gitignore

@@ -140,4 +140,5 @@ dmypy.json
 cython_debug/
 
 etc
-static/logo.jpg
+static/logo.jpg
+static/wangan.png

+ 1 - 0
configure/__init__.py

@@ -36,6 +36,7 @@ conf = {
     "LOG_STDERR": True,
     "LOGO": "logo.jpg",
     "ICP": None,
+    "GONG_AN": None,
 }
 
 

+ 4 - 0
static/styles/base.css

@@ -14,4 +14,8 @@ body {
 
 #ICP {
     background-color: rgb(255, 255, 255, 60%);
+}
+
+#GONG_AN {
+    background-color: rgb(255, 255, 255, 60%);
 }

+ 8 - 0
templates/base.html

@@ -112,6 +112,14 @@
         {{ conf['FOOT'] }}
         {% if conf["ICP"] %}
             <br> <a id="ICP" href="https://beian.miit.gov.cn"> {{ conf['ICP'] }} </a>
+            {% if conf["GONG_AN"] %}
+                <br> <a id="GONG_AN" target="_blank"
+                   href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44011402000783"
+                   style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
+                    <img src="{{ url_for('static', filename='wangan.png') }}" style="float:left;"/>
+                    {{ conf["GONG_AN"] }}
+                </a>
+            {% endif %}
         {% endif %}
     </footer>
     <script>

+ 9 - 0
templates/index/hello.html

@@ -29,7 +29,16 @@
     {% if conf["ICP"] %}
         <footer id="foot">
             <a id="ICP" href="https://beian.miit.gov.cn"> {{ conf['ICP'] }} </a>
+            {% if conf["GONG_AN"] %}
+                <br> <a id="GONG_AN" target="_blank"
+                   href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44011402000783"
+                   style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
+                    <img src="{{ url_for('static', filename='wangan.png') }}" style="float:left;"/>
+                    {{ conf["GONG_AN"] }}
+                </a>
+            {% endif %}
         </footer>
+
         <script>
             function SetFooter (mutationsList, observer) {
                 let foot = document.getElementById('foot')