diff --git a/src/main/scala/code/snippet/ApiExplorer.scala b/src/main/scala/code/snippet/ApiExplorer.scala index da9d6221..1a85fa71 100644 --- a/src/main/scala/code/snippet/ApiExplorer.scala +++ b/src/main/scala/code/snippet/ApiExplorer.scala @@ -29,6 +29,7 @@ import net.liftweb.json.Serialization.writePretty import code.lib.ObpAPI.{getResourceDocsJson, allBanks, allAccountsAtOneBank} +import net.liftweb.http.CurrentReq /* @@ -190,33 +191,41 @@ class ApiExplorer extends Loggable { responseBody } + + + + + val uri = CurrentReq.value.uri + + + val banks = allBanks // TODO dehardcode the redirect path. def onBankChange (v: Any) = { logger.info("bank changed to " + v.toString) - S.redirectTo(s"index?bank_id=${v}") + S.redirectTo(s"$uri?bank_id=${v}") } def onAccountChange (v: Any) = { logger.info("account changed to " + v.toString) - S.redirectTo(s"index?bank_id=${presetBankId}&account_id=${v}") + S.redirectTo(s"$uri?bank_id=${presetBankId}&account_id=${v}") } def onViewChange (v: Any) = { logger.info("view changed to " + v.toString) - S.redirectTo(s"index?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${v}") + S.redirectTo(s"$uri?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${v}") } def onCounterpartyChange (v: Any) = { logger.info("counterparty changed to " + v.toString) - S.redirectTo(s"index?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${presetViewId}&counterparty_id=${v}") + S.redirectTo(s"$uri?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${presetViewId}&counterparty_id=${v}") } def onTransactionChange (v: Any) = { logger.info("transaction changed to " + v.toString) - S.redirectTo(s"index?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${presetViewId}&counterparty_id=${presetCounterpartyId}&transaction_id=${v}") + S.redirectTo(s"$uri?bank_id=${presetBankId}&account_id=${presetAccountId}&view_id=${presetViewId}&counterparty_id=${presetCounterpartyId}&transaction_id=${v}") } diff --git a/src/main/webapp/favicon.ico b/src/main/webapp/favicon.ico index f8fb81e3..29e667ad 100644 Binary files a/src/main/webapp/favicon.ico and b/src/main/webapp/favicon.ico differ diff --git a/src/main/webapp/list-accounts.html b/src/main/webapp/list-accounts.html deleted file mode 100644 index 7cbaed4e..00000000 --- a/src/main/webapp/list-accounts.html +++ /dev/null @@ -1,54 +0,0 @@ - -
- -
Accounts management
- - -
diff --git a/src/main/webapp/templates-hidden/_comment.html b/src/main/webapp/templates-hidden/_comment.html deleted file mode 100644 index 1f88e3e1..00000000 --- a/src/main/webapp/templates-hidden/_comment.html +++ /dev/null @@ -1,7 +0,0 @@ -
  • - # 123 - The comment goes here -

    - 2012/10/12 13:23 - Commenter's email address goes here -
  • \ No newline at end of file diff --git a/src/main/webapp/templates-hidden/_tag.html b/src/main/webapp/templates-hidden/_tag.html deleted file mode 100644 index a5daa3b4..00000000 --- a/src/main/webapp/templates-hidden/_tag.html +++ /dev/null @@ -1,6 +0,0 @@ - - - The tag goes here - x - - \ No newline at end of file diff --git a/src/main/webapp/templates-hidden/_transactionImage.html b/src/main/webapp/templates-hidden/_transactionImage.html deleted file mode 100644 index f33825df..00000000 --- a/src/main/webapp/templates-hidden/_transactionImage.html +++ /dev/null @@ -1,8 +0,0 @@ -
    -
    x
    - -

    A caption for the image

    -
    - Bob
    sometime. -
    -
    \ No newline at end of file diff --git a/src/main/webapp/zz_index.html b/src/main/webapp/zz_index.html deleted file mode 100755 index e1bd20fe..00000000 --- a/src/main/webapp/zz_index.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - -
    -
    -
    -

    - Welcome to The Open Bank Project’s Social Finance application. -

    -
    - - - -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -