perazhog (perazhog) wrote in changelog,
perazhog
perazhog
changelog

[ljcom] r12045: LJSUP-12382: Add to shop/history paginat...

Committer: egeraskin
LJSUP-12382: Add to shop/history pagination on every 50 positions
U   trunk/htdocs/stc/shop/shop.css
U   trunk/templates/Shop/History.tmpl
Modified: trunk/htdocs/stc/shop/shop.css
===================================================================
--- trunk/htdocs/stc/shop/shop.css	2012-05-31 14:18:43 UTC (rev 12044)
+++ trunk/htdocs/stc/shop/shop.css	2012-05-31 14:27:03 UTC (rev 12045)
@@ -1426,6 +1426,33 @@
 	display: none;
 	}
 
+/* Payment history paging */ 
+
+.b-payment-history .b-history-paging {
+	margin-top: 20px;
+	}
+.b-history-paging STRONG,
+.b-history-paging A {
+	padding: 0.1em 0.4em;
+	line-height: 1;
+	border: 1px solid #CCCCCC;
+	text-decoration: none;
+	}
+.b-history-paging STRONG {
+	border-color: #829DBF;
+	background: #829DBF;
+	color: #FFF;
+	}
+.b-history-paging .b-history-paging-counter {
+	background: #FFF;
+    color: #404040;
+	}
+.b-history-paging .b-history-paging-prev,
+.b-history-paging .b-history-paging-next {
+	border: none;
+	}
+
+
 /* Cart
 ------------------------------------------------------------------------*/
 .b-cart {

Modified: trunk/templates/Shop/History.tmpl
===================================================================
--- trunk/templates/Shop/History.tmpl	2012-05-31 14:18:43 UTC (rev 12044)
+++ trunk/templates/Shop/History.tmpl	2012-05-31 14:27:03 UTC (rev 12045)
@@ -42,15 +42,15 @@
 		</table>
 
 		<TMPL_IF orders_show_paging>
-			<p class="history-paging">
-				<strong><TMPL_VAR expr="ml('shop.history.paging.title')"></strong>
+			<p class="b-history-paging">
+				<span><TMPL_VAR expr="ml('shop.history.paging.title')"></span>
 
 				<TMPL_IF orders_previous_page>
-					<a href="<TMPL_VAR orders_previous_page ESCAPE=HTML>"><TMPL_VAR expr="ml('shop.history.paging.previous')"></a>
+					<a href="<TMPL_VAR orders_previous_page ESCAPE=HTML>" class="b-history-paging-prev"><TMPL_VAR expr="ml('shop.history.paging.previous')"></a>
 				</TMPL_IF>
 
 				<TMPL_IF orders_first_page>
-					<a href="<TMPL_VAR orders_first_page ESCAPE=HTML>">1</a>
+					<a href="<TMPL_VAR orders_first_page ESCAPE=HTML>" class="b-history-paging-counter">1</a>
 					&hellip;
 				</TMPL_IF>
 
@@ -58,17 +58,17 @@
 					<TMPL_IF page_current>
 						<strong><TMPL_VAR page_num></strong>
 					<TMPL_ELSE>
-						<a href="<TMPL_VAR page_link ESCAPE=HTML>"><TMPL_VAR page_num></a>
+						<a href="<TMPL_VAR page_link ESCAPE=HTML>" class="b-history-paging-counter"><TMPL_VAR page_num></a>
 					</TMPL_IF>
 				</TMPL_LOOP>
 
 				<TMPL_IF orders_last_page>
 					&hellip;
-					<a href="<TMPL_VAR orders_last_page ESCAPE=HTML>"><TMPL_VAR orders_last_page_num></a>
+					<a href="<TMPL_VAR orders_last_page ESCAPE=HTML>" class="b-history-paging-counter"><TMPL_VAR orders_last_page_num></a>
 				</TMPL_IF>
 
 				<TMPL_IF orders_next_page>
-					<a href="<TMPL_VAR orders_next_page ESCAPE=HTML>"><TMPL_VAR expr="ml('shop.history.paging.next')"></a>
+					<a href="<TMPL_VAR orders_next_page ESCAPE=HTML>" class="b-history-paging-next"><TMPL_VAR expr="ml('shop.history.paging.next')"></a>
 				</TMPL_IF>
 			</p>
 		</TMPL_IF>

Tags: css, egeraskin, ljcom, perazhog, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments