Explorar el Código

css 1회만 임포트되도록 수정

hoparkgo9ma hace 7 años
padre
commit
9a00e5822c
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app.py

+ 1 - 2
app.py

@@ -2789,13 +2789,12 @@ def login():
         
         return redirect('/user')  
     else:
-        oauth_content = '<div class="oauth-wrapper"><ul class="oauth-list">'
+        oauth_content = '<link rel="stylesheet" href="/views/main_css/oauth.css"><div class="oauth-wrapper"><ul class="oauth-list">'
         oauth_supported = load_oauth('_README')['support']
         for i in range(len(oauth_supported)):
             oauth_data = load_oauth(oauth_supported[i])
             if oauth_data['client_id'] != '' and oauth_data['client_secret'] != '':
                 oauth_content +=    '''
-                                    <link rel="stylesheet" href="/views/main_css/oauth.css">
                                     <li>
                                         <a href="/oauth/{}/init">
                                             <div class="oauth-btn oauth-btn-{}">