diff views/index.jade @ 7:2123f355ab68

go back interval or 15 min, delete credentials, layout
author Mathias Gebbe <mgebbe@intevation.de>
date Wed, 11 Jun 2014 02:32:53 +0200
parents a94ac7c3b182
children 9d17cb5147ca
line wrap: on
line diff
--- a/views/index.jade	Sat Jun 07 10:22:12 2014 +0200
+++ b/views/index.jade	Wed Jun 11 02:32:53 2014 +0200
@@ -137,11 +137,8 @@
                $('#fbstatus').html('not logged in');
             }
            });
-
-
          });
 
-
         $('.fbloginbutton').on('click', function(e){
            FB.login(function(response) {
              if (response.authResponse) {
@@ -165,44 +162,51 @@
    block content
   .main
       h1(class='headline') pumpbridge.<br>connecting social networks
-      #fb-root.fb-root
-         input(id='fbloginbutton',type='image',class='fbloginbutton',value='fbLogin',src='images/fb.svg',width='100px',height='100px')
-      #gp-root.gp-root
-         input(id='gploginbutton',type='image',class='gploginbutton',value='gpLogin',src='images/gp.svg',width='100px',height='100px')
-         //span.g-signin(data-scope='https://www.googleapis.com/auth/plus.login', data-clientid='460404084439-rgb5r2vh7hh8hvf2na65c7n1ofhmomek.apps.googleusercontent.com', data-redirecturi='postmessage', data-accesstype='offline', data-cookiepolicy='single_host_origin', data-callback='signInCallback', approval_prompt='force')
-      #tw-root.tw-root
-         a(href='/add-account'): input(id='twloginbutton',type='image',class='twloginbutton',value='twLogin',src='images/twitter.svg',width='100px',height='100px')
-      //#pump-root.pump-root
-      //   a(href='/login')
-      //   input(id='pumploginbutton',type='image',class='pumploginbutton',value='pumpLogin',src='images/pumpiologo.svg',width='100px',height='100px')
-      br
-     form(class='',action='/bridge',method='post')
-      #connect.connect
-      ul
-       li pump.io:
-         a(id='pumpstatus',class='pumpstatus',href=user.homepage)= user.id
-         br
+      #pump-root.pump-root
+        h4
+          | logged in as:
+          a(id='pumpstatus',class='pumpstatus',href=user.homepage)=user.id
+      #fb.fb
+        #fb-root.fb-root
+          input(id='fbloginbutton',type='image',class='fbloginbutton',value='fbLogin',src='images/fb.svg',width='100px',height='100px')
+        #fb-info.fb-info
+          i(id='fbstatus') not logged in
+          br
+          form(class='',action='/bridge',method='post')
+           input(id='fbdeleted',name='fbdelete',hidden='true',value=user.id)
+           button(type='submit',class='btn btn-default btn-xs')
+            | delete credentials
+      #gp.gp
+        #gp-root.gp-root
+           input(id='gploginbutton',type='image',class='gploginbutton',value='gpLogin',src='images/gp.svg',width='100px',height='100px')
+        #gp-info.gp-info
+          i(id='gpstatus') not logged in
+          br
+          form(class='',action='/bridge',method='post')
+           input(id='gpdeleted',name='gpdelete',hidden='true',value=user.id)
+           button(type='submit',class='btn btn-default btn-xs')
+            | delete credentials
+      #tw.tw
+        #tw-root.tw-root
+          a(href='/add-account'): input(type='image',value='twitterlogin',src='images/twitter.svg',width='100px',height='100px')
+        #tw-info.tw-info
+          i(id='twstatus') not logged in
+          br
+          form(class='',action='/bridge',method='post')
+           input(id='twdeleted',name='twdelete',hidden='true',value=user.id)
+           button(type='submit',class='btn btn-default btn-xs')
+            | delete credentials
+       form(class='',action='/bridge',method='post')
          input(id='pumpid',name='pumpid',hidden='true',value=user.id)
          input(id='pumptoken',name='pumptoken',hidden='true', value=user.token)
          input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret)
          input(id='pumpobj',name='pumpobj', hidden='true' value='')
-       li Facebook:
-         i(id='fbstatus') &nbsp; not logged in
-         br
          input(id='fbid',name='fbid',hidden='true')
          input(id='fbtoken',name='fbtoken',hidden='true')
-       li GooglePlus:
-         i(id='gpstatus') &nbsp; not logged in
-         br
          input(id='gpid',name='gpid',hidden='true')
          input(id='gptoken',name='gptoken',hidden='true',size=100)
-       li Twitter:
-         i(id='twstatus') &nbsp; not logged in
          br
-         input(id='twid',name='twid',hidden='true')
-         input(id='twtoken',name='twtoken',hidden='true',size=100)
-      br
-      input(type='submit',class='btn btn-default',value='save tokens')
+         input(type='submit',class='btn btn-default',value='save credentials')
    .footer
     #logout.logout
          //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled)
@@ -211,3 +215,5 @@
          br
      p.
       here our bridge will be.
+      <br> visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge/</a>
+
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)