Skip to content

Commit d2a9856

Browse files
authored
Merge pull request OriHoch#17 from OriHoch/more-rtl-fixes
more rtl fixes
2 parents 8c059e9 + 45b6712 commit d2a9856

File tree

6 files changed

+258
-269
lines changed

6 files changed

+258
-269
lines changed

bin/poedit.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
if ! which poedit; then
4+
sudo apt-get install poedit
5+
fi
6+
7+
poedit ckan/ckanext-odata_org_il/ckanext/odata_org_il/i18n/he/LC_MESSAGES/ckan.po
8+

ckan/ckanext-odata_org_il/ckanext/odata_org_il/fanstatic/rtl.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.heading, .module-heading, a, p, .dataset-list, .search-form, h1,
22
#dataset-resources, .additional-info, .tags, td.dataset-details, th.dataset-label,
3-
.context-info, .flash-messages, .page_primary_action, .breadcrumb
3+
.context-info, .flash-messages, .page_primary_action, .breadcrumb,
4+
.media-item, .nav-item
45
{
56
direction: rtl;
67
text-align: right;
@@ -28,3 +29,11 @@
2829
.resource-item {
2930
padding: 10px 60px 10px 10px;
3031
}
32+
33+
.homepage .module-search .tags h3, .homepage .module-search .tags .tag {
34+
float: right;
35+
}
36+
37+
.nav-facet .nav-item a span {
38+
padding-right: 15px;
39+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$(function() {
2+
$('.nav-facet .nav-item a span').each(function(i, elt) {
3+
var $elt = $(elt);
4+
var txt = $elt.text();
5+
var tmp = txt.split(" ");
6+
if (tmp.length > 1 && tmp[tmp.length-1].length > 1 && tmp[tmp.length-1][0] == "(") {
7+
txt = tmp.slice(0, tmp.length-1).join(" ");
8+
var mark = (CKAN_LANG=="he") ? " ‏" : " ‎";
9+
txt += mark + tmp[tmp.length-1];
10+
$elt.html(txt);
11+
}
12+
});
13+
});
Binary file not shown.

0 commit comments

Comments
 (0)