comparison 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
comparison
equal deleted inserted replaced
6:a94ac7c3b182 7:2123f355ab68
135 } else { 135 } else {
136 // the user isn't logged in to Facebook. 136 // the user isn't logged in to Facebook.
137 $('#fbstatus').html('not logged in'); 137 $('#fbstatus').html('not logged in');
138 } 138 }
139 }); 139 });
140
141
142 }); 140 });
143
144 141
145 $('.fbloginbutton').on('click', function(e){ 142 $('.fbloginbutton').on('click', function(e){
146 FB.login(function(response) { 143 FB.login(function(response) {
147 if (response.authResponse) { 144 if (response.authResponse) {
148 FB.api('/me', function(response) { 145 FB.api('/me', function(response) {
163 160
164 body 161 body
165 block content 162 block content
166 .main 163 .main
167 h1(class='headline') pumpbridge.<br>connecting social networks 164 h1(class='headline') pumpbridge.<br>connecting social networks
168 #fb-root.fb-root 165 #pump-root.pump-root
169 input(id='fbloginbutton',type='image',class='fbloginbutton',value='fbLogin',src='images/fb.svg',width='100px',height='100px') 166 h4
170 #gp-root.gp-root 167 | logged in as:
171 input(id='gploginbutton',type='image',class='gploginbutton',value='gpLogin',src='images/gp.svg',width='100px',height='100px') 168 a(id='pumpstatus',class='pumpstatus',href=user.homepage)=user.id
172 //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') 169 #fb.fb
173 #tw-root.tw-root 170 #fb-root.fb-root
174 a(href='/add-account'): input(id='twloginbutton',type='image',class='twloginbutton',value='twLogin',src='images/twitter.svg',width='100px',height='100px') 171 input(id='fbloginbutton',type='image',class='fbloginbutton',value='fbLogin',src='images/fb.svg',width='100px',height='100px')
175 //#pump-root.pump-root 172 #fb-info.fb-info
176 // a(href='/login') 173 i(id='fbstatus') not logged in
177 // input(id='pumploginbutton',type='image',class='pumploginbutton',value='pumpLogin',src='images/pumpiologo.svg',width='100px',height='100px') 174 br
178 br 175 form(class='',action='/bridge',method='post')
179 form(class='',action='/bridge',method='post') 176 input(id='fbdeleted',name='fbdelete',hidden='true',value=user.id)
180 #connect.connect 177 button(type='submit',class='btn btn-default btn-xs')
181 ul 178 | delete credentials
182 li pump.io: 179 #gp.gp
183 a(id='pumpstatus',class='pumpstatus',href=user.homepage)= user.id 180 #gp-root.gp-root
184 br 181 input(id='gploginbutton',type='image',class='gploginbutton',value='gpLogin',src='images/gp.svg',width='100px',height='100px')
182 #gp-info.gp-info
183 i(id='gpstatus') not logged in
184 br
185 form(class='',action='/bridge',method='post')
186 input(id='gpdeleted',name='gpdelete',hidden='true',value=user.id)
187 button(type='submit',class='btn btn-default btn-xs')
188 | delete credentials
189 #tw.tw
190 #tw-root.tw-root
191 a(href='/add-account'): input(type='image',value='twitterlogin',src='images/twitter.svg',width='100px',height='100px')
192 #tw-info.tw-info
193 i(id='twstatus') not logged in
194 br
195 form(class='',action='/bridge',method='post')
196 input(id='twdeleted',name='twdelete',hidden='true',value=user.id)
197 button(type='submit',class='btn btn-default btn-xs')
198 | delete credentials
199 form(class='',action='/bridge',method='post')
185 input(id='pumpid',name='pumpid',hidden='true',value=user.id) 200 input(id='pumpid',name='pumpid',hidden='true',value=user.id)
186 input(id='pumptoken',name='pumptoken',hidden='true', value=user.token) 201 input(id='pumptoken',name='pumptoken',hidden='true', value=user.token)
187 input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret) 202 input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret)
188 input(id='pumpobj',name='pumpobj', hidden='true' value='') 203 input(id='pumpobj',name='pumpobj', hidden='true' value='')
189 li Facebook:
190 i(id='fbstatus') &nbsp; not logged in
191 br
192 input(id='fbid',name='fbid',hidden='true') 204 input(id='fbid',name='fbid',hidden='true')
193 input(id='fbtoken',name='fbtoken',hidden='true') 205 input(id='fbtoken',name='fbtoken',hidden='true')
194 li GooglePlus:
195 i(id='gpstatus') &nbsp; not logged in
196 br
197 input(id='gpid',name='gpid',hidden='true') 206 input(id='gpid',name='gpid',hidden='true')
198 input(id='gptoken',name='gptoken',hidden='true',size=100) 207 input(id='gptoken',name='gptoken',hidden='true',size=100)
199 li Twitter:
200 i(id='twstatus') &nbsp; not logged in
201 br 208 br
202 input(id='twid',name='twid',hidden='true') 209 input(type='submit',class='btn btn-default',value='save credentials')
203 input(id='twtoken',name='twtoken',hidden='true',size=100)
204 br
205 input(type='submit',class='btn btn-default',value='save tokens')
206 .footer 210 .footer
207 #logout.logout 211 #logout.logout
208 //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled) 212 //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled)
209 form(class='',action='/logout',method='post') 213 form(class='',action='/logout',method='post')
210 input(type='submit',class='btn btn-default',value='logout') 214 input(type='submit',class='btn btn-default',value='logout')
211 br 215 br
212 p. 216 p.
213 here our bridge will be. 217 here our bridge will be.
218 <br> visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge/</a>
219
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)