summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2010-02-09 21:57:04 -0700
committerChad Kieffer <ckieffer@gmail.com>2010-02-09 21:57:04 -0700
commit92c2dd61ffa2140ec484ede0b75bb10b35229e63 (patch)
tree02b03f8b8b0d81fe86d71e2cde998664c91c2791 /modules/gallery
parent46744ef54962c8796cc74ef04deac0aad4b0a3d4 (diff)
Formated upgrader for RTL languages. Closes ticket #883
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/css/upgrader.css39
-rw-r--r--modules/gallery/views/upgrader.html.php4
2 files changed, 36 insertions, 7 deletions
diff --git a/modules/gallery/css/upgrader.css b/modules/gallery/css/upgrader.css
index 73da0ff4..2b3b5afd 100644
--- a/modules/gallery/css/upgrader.css
+++ b/modules/gallery/css/upgrader.css
@@ -26,6 +26,12 @@ div#footer {
margin: 1em;
}
+table {
+ width: 600px;
+ margin-bottom: 10px;
+}
+
+th.name,
td.name {
text-align: left;
padding-left: 30px;
@@ -53,11 +59,6 @@ tr.upgradeable td.gallery {
color: #00d;
}
-table {
- width: 600px;
- margin-bottom: 10px;
-}
-
p {
font-size: .9em;
}
@@ -125,3 +126,31 @@ pre {
margin: 0px;
padding: 0px;
}
+
+.rtl {
+ direction: rtl;
+}
+
+.rtl th.name,
+.rtl td.name {
+ text-align: right;
+ padding-right: 30px;
+}
+
+
+.rtl li:before {
+ content: "";
+}
+
+.rtl li:after {
+ content: "\00BB \0020";
+}
+
+.rtl ul {
+ margin-right: 0;
+ padding-right: 0;
+}
+
+.rtl div#dialog a.close {
+ float: left;
+}
diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php
index 4490557c..55731440 100644
--- a/modules/gallery/views/upgrader.html.php
+++ b/modules/gallery/views/upgrader.html.php
@@ -6,7 +6,7 @@
media="screen,print,projection" />
<script src="<?= url::file("lib/jquery.js") ?>" type="text/javascript"></script>
</head>
- <body>
+ <body<? if (locales::is_rtl()) { echo ' class="rtl"'; } ?>>
<div id="outer">
<img src="<?= url::file("modules/gallery/images/gallery.png") ?>" />
<div id="inner">
@@ -59,7 +59,7 @@
</p>
<table>
<tr class="<?= $done ? "muted" : "" ?>">
- <th> <?= t("Module name") ?> </th>
+ <th class="name"> <?= t("Module name") ?> </th>
<th> <?= t("Installed version") ?> </th>
<th> <?= t("Available version") ?> </th>
</tr>