Mercurial > pumpbridge
diff 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 |
line wrap: on
line diff
--- a/views/index.jade Tue Jul 29 16:06:05 2014 +0200 +++ b/views/index.jade Thu Aug 28 18:40:39 2014 +0200 @@ -42,7 +42,7 @@ 'response_type' : 'code', 'accesstype': 'offline', 'approvalprompt': 'force', - 'cookiepolicy': "https://server.example", + 'cookiepolicy': "https://pumpbridge.me", 'requestvisibleactions': 'http://schemas.google.com/AddActivity', 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' }); @@ -128,6 +128,16 @@ var twstatus = getCookie('twitterid') if (twstatus != "") $('#twstatus').html('<a href=https://twitter.com/account/redirect_by_id/' + twstatus + '> ' + getCookie('twitteruser') + '</a>'); + var twfromesn = "#{twfromesn}"; + var twtoesn = "#{twtoesn}"; + + + if (twtoesn == "true") $("#twtoesn").prop("checked", true); + else $("#twtoesn").prop("checked", false); + + if (twfromesn == "true") $("#twfromesn").prop("checked", true); + else $("#twfromesn").prop("checked", false); + $.ajaxSetup({ cache: true }); @@ -222,11 +232,23 @@ #tw-info.tw-info i(id='twstatus') not logged in br + if usermaptw + form(class='',action='/bridge',method='post') + input(id='twmode',name='twmode',hidden='true',value=user.id) + input(id='twtoesn',name='twtoesn',type='checkbox',value='pump2twitter') + | pump2twitter + br + input(id='twfromesn',name='twfromesn',type='checkbox',value='twitter2pump') + | twitter2pump + br + button(id='twsavemode',type='submit',class='btn btn-default btn-xs') + | save modus + br form(class='',action='/bridge',method='post') input(id='twdeleted',name='twdelete',hidden='true',value=user.id) button(id='twdeletebutton',type='submit',class='btn btn-default btn-xs') | delete credentials - button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"') + button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"') | add credentials form(class='',action='/bridge',method='post') input(id='pumpid',name='pumpid',hidden='true',value=user.id) @@ -238,9 +260,7 @@ input(id='gpid',name='gpid',hidden='true') input(id='gptoken',name='gptoken',hidden='true',size=100) br - | you need to extra save the credentials - br - | for facebook and googleplus + | you need to extra save the credentials (facebook / google+) br input(type='submit',class='btn btn-default',value='save credentials') .footer @@ -252,6 +272,6 @@ p. <a href=https://wald.intevation.org/hg/pumpbridge/>pumpbridge</a> is Free Software and available under the Apache License 2.0. <br> - visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more informations! + visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more information! <br> pumpbridge is hosted and operated by <a href=https://io.intevation.de/mgebbe>Mathias Gebbe</a> <a href=/contact.html>(Contact)</a> <br>