diff options
Diffstat (limited to 'modules/rest/views')
| -rw-r--r-- | modules/rest/views/error_rest.json.php | 6 | ||||
| -rw-r--r-- | modules/rest/views/reset_api_key_confirm.html.php | 7 | ||||
| -rw-r--r-- | modules/rest/views/user_profile_rest.html.php | 13 |
3 files changed, 26 insertions, 0 deletions
diff --git a/modules/rest/views/error_rest.json.php b/modules/rest/views/error_rest.json.php new file mode 100644 index 0000000..8c99ef4 --- /dev/null +++ b/modules/rest/views/error_rest.json.php @@ -0,0 +1,6 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? +// Log error response to ease debugging +Kohana_Log::add("error", "Rest error details: " . print_r($e->response, 1)); +?> +<?= json_encode($e->response);
\ No newline at end of file diff --git a/modules/rest/views/reset_api_key_confirm.html.php b/modules/rest/views/reset_api_key_confirm.html.php new file mode 100644 index 0000000..3aae2a9 --- /dev/null +++ b/modules/rest/views/reset_api_key_confirm.html.php @@ -0,0 +1,7 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-rest-reset-api-key" class="ui-helper-clearfix"> + <p> + <?= t("Do you really want to reset your REST API key? Any clients that use this key will need to be updated with the new value.") ?> + </p> + <?= $form ?> +</div> diff --git a/modules/rest/views/user_profile_rest.html.php b/modules/rest/views/user_profile_rest.html.php new file mode 100644 index 0000000..3e5d3db --- /dev/null +++ b/modules/rest/views/user_profile_rest.html.php @@ -0,0 +1,13 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-rest-detail"> + <ul> + <li id="g-rest-key"> + <p> + <?= t("<b>Key</b>: %key", array("key" => $rest_key)) ?> + <a class="g-button ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("rest/reset_api_key_confirm") ?>"> + <?= t("reset") ?> + </a> + </p> + </li> + </ul> +</div> |
