summaryrefslogtreecommitdiffstats
path: root/res/raw
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-01-11 10:26:02 -0800
committerJohn Reck <jreck@google.com>2011-01-11 15:17:22 -0800
commitbafe58a83ade9cfa5c91e7033fae2d08a64603e8 (patch)
tree2b186ea38895f7cd694a711d757626329090cb2e /res/raw
parent1605bef4e1f99805a801308f97ade622b907dc7a (diff)
downloadpackages_apps_Browser-bafe58a83ade9cfa5c91e7033fae2d08a64603e8.zip
packages_apps_Browser-bafe58a83ade9cfa5c91e7033fae2d08a64603e8.tar.gz
packages_apps_Browser-bafe58a83ade9cfa5c91e7033fae2d08a64603e8.tar.bz2
Most Visited custom homepage
Change-Id: Ic57762855e5d187aa0fe3a8eab2757b5a76ff08d
Diffstat (limited to 'res/raw')
-rw-r--r--res/raw/most_visited.ktpl85
1 files changed, 85 insertions, 0 deletions
diff --git a/res/raw/most_visited.ktpl b/res/raw/most_visited.ktpl
new file mode 100644
index 0000000..04b9eee
--- /dev/null
+++ b/res/raw/most_visited.ktpl
@@ -0,0 +1,85 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+<title><%@ string/new_tab %></title>
+<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
+
+<style type="text/css">
+
+* {
+ padding: 0;
+ margin: 0;
+}
+
+body {
+ text-align: center;
+ margin: 16px auto;
+ padding: 0 8px 0 8px;
+ max-width: <%@ dimen/mv_max_width %>px;
+}
+
+#most_visited h3 {
+ text-align: center;
+ padding: 0;
+ margin: 5px 0 5px 0px;
+}
+
+.thumbwrap li {
+ display: inline-block;
+ margin: 0 7px 15px 7px;
+ padding: 0;
+}
+
+@media all and (orientation:portrait) {
+.thumbwrap li {
+ width: <%@ dimen/mv_item_width_portrait %>px;
+}
+}
+
+@media all and (orientation:landscape) {
+.thumbwrap li {
+ width: <%@ dimen/mv_item_width %>px;
+}
+}
+
+.thumbwrap a {
+ display: block;
+ text-decoration: none;
+ color: #000;
+}
+
+.thumbwrap img {
+ border: <%@ dimen/mv_border_width %>px solid #e0e0e0;
+ border-radius: 5px;
+ width: 100%;
+}
+
+.thumbwrap .caption {
+ margin-top: 2px;
+ margin-left: 4px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: block;
+ font-size: .8em;
+ text-align: left;
+}
+
+</style>
+
+</head>
+<body>
+ <h3><%@ string/tab_most_visited %></h3>
+ <ul class="thumbwrap">
+ <%{ most_visited %>
+ <li>
+ <a href="<%= url %>">
+ <img class="wrimg" src="<%= thumbnail %>" />
+ <span class="caption"><%= title %></span>
+ </a>
+ </li>
+ <%} most_visited %>
+ </ul>
+</body>
+</html>