Commit 673e359d authored by Sven Franck's avatar Sven Franck

Gadgets/Pagination: renamed browser gadget

parent 72011fb6
......@@ -43,7 +43,7 @@
// page gadgets
, address: '../modules/ui/address/address'
, basket: '../modules/ui/basket/basket'
, browser: '../modules/ui/browser/browser'
, pagination: '../modules/ui/pagination/pagination'
, confirm: '../modules/ui/confirm/confirm'
, description: '../modules/ui/description/description'
, details: '../modules/ui/details/details'
......
......@@ -28,14 +28,14 @@
<!-- content -->
<div data-role="content" class="ui-content">
<!-- browse items -->
<div id="browser"
data-gadget="modules/browser/browser.html"
data-gadget-module="browser"
<!-- pagination -->
<div id="pagination"
data-gadget="modules/pagination/pagination.html"
data-gadget-module="pagination"
data-gadget-property='{
"state": [
{
"browser": {
"pagination": {
"_config": {
"datasource": {"module": "storage"}
},
......
.browser_bar {
.pagination_bar {
width: 100%;
display: inline-block;
text-align: center;
......
......@@ -5,12 +5,11 @@
<title>Browser Module</title>
</head>
<body>
<!-- TODO: rename to "pagination" gadget -->
<div class="browser_bar">
<div class="pagination_bar">
<div data-role="controlgroup" data-type="horizontal">
<a href="details.html?item_id=prev" data-icon="arrow-l" data-transition="slide" data-direction="reverse" data-role="button" data-iconpos="notext" class="translate prev" data-i18n="browser.previous">Previous</a>
<a href="products.html" data-role="button" class="translate" data-i18n="browser.back">Back</a>
<a href="details.html?item_id=next" data-icon="arrow-r" data-transition="slide" data-role="button" data-iconpos="notext" class="translate next" data-i18n="browser.next">Next</a>
<a href="details.html?item_id=prev" data-icon="arrow-l" data-transition="slide" data-direction="reverse" data-role="button" data-iconpos="notext" class="translate prev" data-i18n="pagination.previous">Previous</a>
<a href="products.html" data-role="button" class="translate" data-i18n="pagination.back">Back</a>
<a href="details.html?item_id=next" data-icon="arrow-r" data-transition="slide" data-role="button" data-iconpos="notext" class="translate next" data-i18n="pagination.next">Next</a>
</div>
</div>
</body>
......
define([
'app'
, 'text!browser.html!strip'
, 'css!browser'
, 'text!pagination.html!strip'
, 'css!pagination'
],
function (App, source) {
var priv = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment