Mercurial > pumpbridge > pumpbridge
comparison views/index.jade @ 30:3e3fa35e3ce2
twitter sync likes, recommend mongodb
configure pump2twitter, twitter2pump in webui
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Thu, 28 Aug 2014 18:40:39 +0200 |
parents | c5bf4e02958e |
children |
comparison
equal
deleted
inserted
replaced
29:34cfa565f565 | 30:3e3fa35e3ce2 |
---|---|
40 'clientid': 'GOOGLEPLUSID.apps.googleusercontent.com', | 40 'clientid': 'GOOGLEPLUSID.apps.googleusercontent.com', |
41 'redirecturi': 'postmessage', | 41 'redirecturi': 'postmessage', |
42 'response_type' : 'code', | 42 'response_type' : 'code', |
43 'accesstype': 'offline', | 43 'accesstype': 'offline', |
44 'approvalprompt': 'force', | 44 'approvalprompt': 'force', |
45 'cookiepolicy': "https://server.example", | 45 'cookiepolicy': "https://pumpbridge.me", |
46 'requestvisibleactions': 'http://schemas.google.com/AddActivity', | 46 'requestvisibleactions': 'http://schemas.google.com/AddActivity', |
47 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' | 47 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' |
48 }); | 48 }); |
49 } | 49 } |
50 | 50 |
125 $('#gpdeletebutton').addClass('hide'); | 125 $('#gpdeletebutton').addClass('hide'); |
126 } | 126 } |
127 | 127 |
128 var twstatus = getCookie('twitterid') | 128 var twstatus = getCookie('twitterid') |
129 if (twstatus != "") $('#twstatus').html('<a href=https://twitter.com/account/redirect_by_id/' + twstatus + '> ' + getCookie('twitteruser') + '</a>'); | 129 if (twstatus != "") $('#twstatus').html('<a href=https://twitter.com/account/redirect_by_id/' + twstatus + '> ' + getCookie('twitteruser') + '</a>'); |
130 | |
131 var twfromesn = "#{twfromesn}"; | |
132 var twtoesn = "#{twtoesn}"; | |
133 | |
134 | |
135 if (twtoesn == "true") $("#twtoesn").prop("checked", true); | |
136 else $("#twtoesn").prop("checked", false); | |
137 | |
138 if (twfromesn == "true") $("#twfromesn").prop("checked", true); | |
139 else $("#twfromesn").prop("checked", false); | |
130 | 140 |
131 $.ajaxSetup({ | 141 $.ajaxSetup({ |
132 cache: true | 142 cache: true |
133 }); | 143 }); |
134 | 144 |
220 #tw-root.tw-root | 230 #tw-root.tw-root |
221 a(href='/add-account'): input(type='image',value='twitterlogin',src='images/twitter.svg',width='100px',height='100px') | 231 a(href='/add-account'): input(type='image',value='twitterlogin',src='images/twitter.svg',width='100px',height='100px') |
222 #tw-info.tw-info | 232 #tw-info.tw-info |
223 i(id='twstatus') not logged in | 233 i(id='twstatus') not logged in |
224 br | 234 br |
235 if usermaptw | |
236 form(class='',action='/bridge',method='post') | |
237 input(id='twmode',name='twmode',hidden='true',value=user.id) | |
238 input(id='twtoesn',name='twtoesn',type='checkbox',value='pump2twitter') | |
239 | pump2twitter | |
240 br | |
241 input(id='twfromesn',name='twfromesn',type='checkbox',value='twitter2pump') | |
242 | twitter2pump | |
243 br | |
244 button(id='twsavemode',type='submit',class='btn btn-default btn-xs') | |
245 | save modus | |
246 br | |
225 form(class='',action='/bridge',method='post') | 247 form(class='',action='/bridge',method='post') |
226 input(id='twdeleted',name='twdelete',hidden='true',value=user.id) | 248 input(id='twdeleted',name='twdelete',hidden='true',value=user.id) |
227 button(id='twdeletebutton',type='submit',class='btn btn-default btn-xs') | 249 button(id='twdeletebutton',type='submit',class='btn btn-default btn-xs') |
228 | delete credentials | 250 | delete credentials |
229 button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"') | 251 button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"') |
230 | add credentials | 252 | add credentials |
231 form(class='',action='/bridge',method='post') | 253 form(class='',action='/bridge',method='post') |
232 input(id='pumpid',name='pumpid',hidden='true',value=user.id) | 254 input(id='pumpid',name='pumpid',hidden='true',value=user.id) |
233 input(id='pumptoken',name='pumptoken',hidden='true', value=user.token) | 255 input(id='pumptoken',name='pumptoken',hidden='true', value=user.token) |
234 input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret) | 256 input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret) |
236 input(id='fbid',name='fbid',hidden='true') | 258 input(id='fbid',name='fbid',hidden='true') |
237 input(id='fbtoken',name='fbtoken',hidden='true') | 259 input(id='fbtoken',name='fbtoken',hidden='true') |
238 input(id='gpid',name='gpid',hidden='true') | 260 input(id='gpid',name='gpid',hidden='true') |
239 input(id='gptoken',name='gptoken',hidden='true',size=100) | 261 input(id='gptoken',name='gptoken',hidden='true',size=100) |
240 br | 262 br |
241 | you need to extra save the credentials | 263 | you need to extra save the credentials (facebook / google+) |
242 br | |
243 | for facebook and googleplus | |
244 br | 264 br |
245 input(type='submit',class='btn btn-default',value='save credentials') | 265 input(type='submit',class='btn btn-default',value='save credentials') |
246 .footer | 266 .footer |
247 #logout.logout | 267 #logout.logout |
248 //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled) | 268 //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled) |
250 input(type='submit',class='btn btn-default',value='logout') | 270 input(type='submit',class='btn btn-default',value='logout') |
251 br | 271 br |
252 p. | 272 p. |
253 <a href=https://wald.intevation.org/hg/pumpbridge/>pumpbridge</a> is Free Software and available under the Apache License 2.0. | 273 <a href=https://wald.intevation.org/hg/pumpbridge/>pumpbridge</a> is Free Software and available under the Apache License 2.0. |
254 <br> | 274 <br> |
255 visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more informations! | 275 visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more information! |
256 <br> | 276 <br> |
257 pumpbridge is hosted and operated by <a href=https://io.intevation.de/mgebbe>Mathias Gebbe</a> <a href=/contact.html>(Contact)</a> <br> | 277 pumpbridge is hosted and operated by <a href=https://io.intevation.de/mgebbe>Mathias Gebbe</a> <a href=/contact.html>(Contact)</a> <br> |