summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAzamat Hackimov <azamat.hackimov@gmail.com>2010-07-29 15:48:53 +0000
committerAzamat Hackimov <azamat.hackimov@gmail.com>2010-07-29 15:48:53 +0000
commitdbb8645353531257efad5301c1c9333d6bf362d9 (patch)
tree772c2ec383cc47c84df606c3371b247f38ffad88
parent702b7296a08819094c0f095a30e08b76460cb0f2 (diff)
downloadredmine-dbb8645353531257efad5301c1c9333d6bf362d9.tar.gz
redmine-dbb8645353531257efad5301c1c9333d6bf362d9.zip
RTL theme for reference (thanks to Orgad Shaneh, #5972)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3898 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/issues/_changesets.rhtml4
-rw-r--r--app/views/issues/_history.rhtml2
-rw-r--r--public/stylesheets/application.css4
-rw-r--r--public/themes/rtl/stylesheets/application.css50
-rw-r--r--public/themes/rtl/stylesheets/context_menu.css6
5 files changed, 64 insertions, 2 deletions
diff --git a/app/views/issues/_changesets.rhtml b/app/views/issues/_changesets.rhtml
index 0b1f10b72..52cd60ff5 100644
--- a/app/views/issues/_changesets.rhtml
+++ b/app/views/issues/_changesets.rhtml
@@ -3,6 +3,8 @@
<p><%= link_to("#{l(:label_revision)} #{changeset.revision}",
:controller => 'repositories', :action => 'revision', :id => changeset.project, :rev => changeset.revision) %><br />
<span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p>
- <%= textilizable(changeset, :comments) %>
+ <div class="changeset-changes">
+ <%= textilizable(changeset, :comments) %>
+ </div>
</div>
<% end %>
diff --git a/app/views/issues/_history.rhtml b/app/views/issues/_history.rhtml
index 7459eb352..a95cbf81c 100644
--- a/app/views/issues/_history.rhtml
+++ b/app/views/issues/_history.rhtml
@@ -1,7 +1,7 @@
<% reply_links = authorize_for('issues', 'edit') -%>
<% for journal in journals %>
<div id="change-<%= journal.id %>" class="journal">
- <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
+ <h4><div class="journal-link"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
<%= avatar(journal.user, :size => "24") %>
<%= content_tag('a', '', :name => "note-#{journal.indice}")%>
<%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index b3dbfd7f2..59a2c3edd 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -903,6 +903,10 @@ td.username img.gravatar {
clear: left;
}
+.journal-link {
+ float: right;
+}
+
h2 img { vertical-align:middle; }
.hascontextmenu { cursor: context-menu; }
diff --git a/public/themes/rtl/stylesheets/application.css b/public/themes/rtl/stylesheets/application.css
new file mode 100644
index 000000000..74f20b43c
--- /dev/null
+++ b/public/themes/rtl/stylesheets/application.css
@@ -0,0 +1,50 @@
+@import url(../../alternate/stylesheets/application.css);
+
+body, #wrapper { direction: rtl;}
+
+#quick-search { float: left; }
+#main-menu { margin-left: -500px; left: auto; right: 6px; margin-right: 0px;}
+#main-menu li { float: right; }
+#top-menu ul { float: right; }
+#account { float: left; }
+#top-menu #loggedas { float: left; }
+#top-menu li { float: right; }
+.tabular label.floating
+{
+ margin-right: 0;
+ margin-left: auto;
+ text-align: right;
+}
+.tabular label
+{
+ float: right;
+ margin-left: auto;
+}
+.tabular p { clear: right; }
+.tabular label.block { text-align: right; }
+
+.icon { background-position: 100% 40%; padding-right: 20px; padding-left: 0px; }
+div#activity dt, #search-results dt { background-position: 100% 50%; padding-right: 20px; padding-left: 0px; }
+#content .tabs ul li { float: right; }
+#content .tabs ul { padding-left: auto; padding-right: 1em; }
+table.progress { float: right; }
+.contextual { float: left; }
+.icon22 { background-position: 100% 40%; padding-right: 26px; padding-left: auto; }
+h3, .wiki h2 { padding: 10px 2px 1px 0; }
+.tooltip span.tip { text-align: right; }
+tr.issue td.subject { text-align: right; }
+tr.time-entry td.subject, tr.time-entry td.comments { text-align: right; }
+#sidebar { float: left; }
+#main.nosidebar #content { border-width: 1px; border-style: solid; border-color: #D7D7D7 #BBBBBB #BBBBBB #D7D7D7;}
+.tabular.settings label { margin-left: auto; }
+.splitcontentleft { float: right; }
+.splitcontentright { float: left; }
+p.progress-info { clear: right; }
+table.list td.buttons a { padding-right: 20px; }
+.filecontent { direction: ltr; }
+.entries { direction: ltr; }
+.changeset-changes { direction: ltr; padding-left: 2em }
+.changesets { direction: ltr; }
+div#issue-changesets { float: left; margin-right: 1em; margin-left: 0 }
+#activity dt, .journal { clear: right; }
+.journal-link { float: left; }
diff --git a/public/themes/rtl/stylesheets/context_menu.css b/public/themes/rtl/stylesheets/context_menu.css
new file mode 100644
index 000000000..c400d3e84
--- /dev/null
+++ b/public/themes/rtl/stylesheets/context_menu.css
@@ -0,0 +1,6 @@
+@import url(../../../stylesheets/context_menu.css);
+
+#context-menu li.folder ul { left:auto; right:168px; }
+#context-menu li.folder>ul { left:auto; right:148px; }
+
+#context-menu li a.submenu { background:url("../../../images/bullet_arrow_left.png") left no-repeat; }