From d667c2d46d77f06081a9336cd92341865106bf0a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 20 May 2012 14:41:35 +0200 Subject: Included jQuery to the libraries. --- .gitignore | 1 + create-package.sh | 1 + ratatoeskr/libs/INFO | 6 ++++++ ratatoeskr/licenses/jquery | 20 ++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 ratatoeskr/licenses/jquery diff --git a/.gitignore b/.gitignore index 3604f16..2505a76 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ ratatoeskr/templates/transc/* ratatoeskr/libs/stupid_template_engine.php ratatoeskr/libs/markdown.php ratatoeskr/libs/kses.php +ratatoeskr/libs/jquery.min.js ratatoeskr/config.php diff --git a/create-package.sh b/create-package.sh index cf0f688..7aec2fd 100755 --- a/create-package.sh +++ b/create-package.sh @@ -23,6 +23,7 @@ unzip kses-*.zip mv kses-*/kses.php . rm -rf kses-* rm kses-*.zip +wget http://code.jquery.com/jquery.min.js cd ../.. rm session_doctor.php cd .. diff --git a/ratatoeskr/libs/INFO b/ratatoeskr/libs/INFO index 60d4df4..e2bc19b 100644 --- a/ratatoeskr/libs/INFO +++ b/ratatoeskr/libs/INFO @@ -17,3 +17,9 @@ This directory will hold some libraries Ratatöskr needs. Place "kses.php" from the archive directly into this directory. kses can be found at + +4. jQuery + + Place jquery.min.js into this folder. + + jQuery can be found at \ No newline at end of file diff --git a/ratatoeskr/licenses/jquery b/ratatoeskr/licenses/jquery new file mode 100644 index 0000000..0dee009 --- /dev/null +++ b/ratatoeskr/licenses/jquery @@ -0,0 +1,20 @@ +Copyright (c) 2012 John Resig, http://jquery.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file -- cgit v1.2.3-54-g00ecf From 8ad26def303c7dc0db1049b8c72f21c17133ab33 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 21 May 2012 21:21:00 +0200 Subject: Sidebar blocks of Article editor can be expanded/collapsed. --- .../cms_style/images/expandarrow_collapsed.png | Bin 0 -> 142 bytes .../cms_style/images/expandarrow_expanded.png | Bin 0 -> 154 bytes ratatoeskr/cms_style/layout.css | 12 +++++ ratatoeskr/js/backend.js | 19 +++++++ .../src/systemtemplates/content_write.html | 57 ++++++++++++--------- .../templates/src/systemtemplates/master.html | 2 + 6 files changed, 65 insertions(+), 25 deletions(-) create mode 100644 ratatoeskr/cms_style/images/expandarrow_collapsed.png create mode 100644 ratatoeskr/cms_style/images/expandarrow_expanded.png create mode 100644 ratatoeskr/js/backend.js diff --git a/ratatoeskr/cms_style/images/expandarrow_collapsed.png b/ratatoeskr/cms_style/images/expandarrow_collapsed.png new file mode 100644 index 0000000..62f662b Binary files /dev/null and b/ratatoeskr/cms_style/images/expandarrow_collapsed.png differ diff --git a/ratatoeskr/cms_style/images/expandarrow_expanded.png b/ratatoeskr/cms_style/images/expandarrow_expanded.png new file mode 100644 index 0000000..a5e4c41 Binary files /dev/null and b/ratatoeskr/cms_style/images/expandarrow_expanded.png differ diff --git a/ratatoeskr/cms_style/layout.css b/ratatoeskr/cms_style/layout.css index 1163887..a88537d 100644 --- a/ratatoeskr/cms_style/layout.css +++ b/ratatoeskr/cms_style/layout.css @@ -257,3 +257,15 @@ ul.bulletfree { list-style: none; padding-left: 0mm; } + +.metabar_element_expanded { + min-height: 12px; + background: url(images/expandarrow_expanded.png) 0px 4px no-repeat; + padding-left: 12px; +} + +.metabar_element_collapsed { + min-height: 12px; + background: url(images/expandarrow_collapsed.png) 0px 4px no-repeat; + padding-left: 12px; +} \ No newline at end of file diff --git a/ratatoeskr/js/backend.js b/ratatoeskr/js/backend.js new file mode 100644 index 0000000..d131bfe --- /dev/null +++ b/ratatoeskr/js/backend.js @@ -0,0 +1,19 @@ +$(function() +{ + $("div.articleeditor-metabar-element h2").addClass("metabar_element_expanded").click(function() + { + self = $(this); + if(self.hasClass("metabar_element_expanded")) + { + self.removeClass("metabar_element_expanded"); + self.addClass("metabar_element_collapsed"); + $("div.articleeditor-metabar-element-content", self.parent()).hide("fast"); + } + else + { + self.removeClass("metabar_element_collapsed"); + self.addClass("metabar_element_expanded"); + $("div.articleeditor-metabar-element-content", self.parent()).show("fast"); + } + }); +}); \ No newline at end of file diff --git a/ratatoeskr/templates/src/systemtemplates/content_write.html b/ratatoeskr/templates/src/systemtemplates/content_write.html index 3d63c61..08d6ec1 100644 --- a/ratatoeskr/templates/src/systemtemplates/content_write.html +++ b/ratatoeskr/templates/src/systemtemplates/content_write.html @@ -26,33 +26,40 @@
-

- -

:

-

- : - -

-

:

-

:
(YYYY-MM-DD HH:MM:SS)

-

- : - ?{$article_status|$article_status|1} - -

-

:

+
+

+
+

:

+

+ : + +

+

:

+

:
(YYYY-MM-DD HH:MM:SS)

+

+ : + ?{$article_status|$article_status|1} + +

+

:

+
+
-

$plugin[label]

- +
+

$plugin[label]

+
+ +
+
diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html index ddf6d08..406bab6 100755 --- a/ratatoeskr/templates/src/systemtemplates/master.html +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -25,6 +25,8 @@ <ste:get_translation for="section_$section" />::<ste:escape>$pagetitle</ste:escape> - Ratatöskr + + layout.css $cssfile -- cgit v1.2.3-54-g00ecf From d38cba8d577b67e68fe1558ea72fa6b19c9ca505 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 21 May 2012 22:26:21 +0200 Subject: Made collapse/expand feature more obvious. * The underlining on hovering makes it more obvious that something will happen, if you click on it. * Also cleaned up the stylesheet a bit. --- ratatoeskr/cms_style/layout.css | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ratatoeskr/cms_style/layout.css b/ratatoeskr/cms_style/layout.css index a88537d..fde0fac 100644 --- a/ratatoeskr/cms_style/layout.css +++ b/ratatoeskr/cms_style/layout.css @@ -258,14 +258,20 @@ ul.bulletfree { padding-left: 0mm; } -.metabar_element_expanded { +.metabar_element_expanded, .metabar_element_collapsed { min-height: 12px; - background: url(images/expandarrow_expanded.png) 0px 4px no-repeat; padding-left: 12px; + cursor: pointer; +} + +.metabar_element_expanded:hover, .metabar_element_collapsed:hover { + text-decoration: underline; +} + +.metabar_element_expanded { + background: url(images/expandarrow_expanded.png) 0px 4px no-repeat; } .metabar_element_collapsed { - min-height: 12px; background: url(images/expandarrow_collapsed.png) 0px 4px no-repeat; - padding-left: 12px; } \ No newline at end of file -- cgit v1.2.3-54-g00ecf From 9ee26e1077a52fcbdab5929186e7d118f834d269 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 26 May 2012 12:16:33 +0200 Subject: ste:default_delete_yesno introduces This tag makes it a bit easier to write backend templates. It automatically generates the typical dropdown + button combo for mass-deleting entries. --- ratatoeskr/templates/src/systemtemplates/image_list.html | 6 +----- ratatoeskr/templates/src/systemtemplates/master.html | 7 +++++++ ratatoeskr/templates/src/systemtemplates/repos.html | 6 +----- ratatoeskr/templates/src/systemtemplates/sections.html | 5 +---- ratatoeskr/templates/src/systemtemplates/settings.html | 2 +- ratatoeskr/templates/src/systemtemplates/styles.html | 6 +----- ratatoeskr/templates/src/systemtemplates/templates.html | 6 +----- ratatoeskr/templates/src/systemtemplates/users.html | 4 ++-- 8 files changed, 15 insertions(+), 27 deletions(-) diff --git a/ratatoeskr/templates/src/systemtemplates/image_list.html b/ratatoeskr/templates/src/systemtemplates/image_list.html index 7b40ddc..fe600aa 100644 --- a/ratatoeskr/templates/src/systemtemplates/image_list.html +++ b/ratatoeskr/templates/src/systemtemplates/image_list.html @@ -47,11 +47,7 @@
- - +
diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html index 406bab6..bce92b1 100755 --- a/ratatoeskr/templates/src/systemtemplates/master.html +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -19,6 +19,13 @@ + + + + diff --git a/ratatoeskr/templates/src/systemtemplates/repos.html b/ratatoeskr/templates/src/systemtemplates/repos.html index f724ece..31de6a5 100644 --- a/ratatoeskr/templates/src/systemtemplates/repos.html +++ b/ratatoeskr/templates/src/systemtemplates/repos.html @@ -45,11 +45,7 @@
- - + |
diff --git a/ratatoeskr/templates/src/systemtemplates/sections.html b/ratatoeskr/templates/src/systemtemplates/sections.html index b67563d..7ac3241 100644 --- a/ratatoeskr/templates/src/systemtemplates/sections.html +++ b/ratatoeskr/templates/src/systemtemplates/sections.html @@ -56,10 +56,7 @@
-   + | | diff --git a/ratatoeskr/templates/src/systemtemplates/settings.html b/ratatoeskr/templates/src/systemtemplates/settings.html index b7fee48..31021fe 100644 --- a/ratatoeskr/templates/src/systemtemplates/settings.html +++ b/ratatoeskr/templates/src/systemtemplates/settings.html @@ -38,7 +38,7 @@
-   + | | diff --git a/ratatoeskr/templates/src/systemtemplates/styles.html b/ratatoeskr/templates/src/systemtemplates/styles.html index 71464fb..30c4277 100644 --- a/ratatoeskr/templates/src/systemtemplates/styles.html +++ b/ratatoeskr/templates/src/systemtemplates/styles.html @@ -27,11 +27,7 @@
- - +

diff --git a/ratatoeskr/templates/src/systemtemplates/templates.html b/ratatoeskr/templates/src/systemtemplates/templates.html index eca33cf..1a33e31 100644 --- a/ratatoeskr/templates/src/systemtemplates/templates.html +++ b/ratatoeskr/templates/src/systemtemplates/templates.html @@ -27,11 +27,7 @@
- - +
diff --git a/ratatoeskr/templates/src/systemtemplates/users.html b/ratatoeskr/templates/src/systemtemplates/users.html index d9542a2..255759a 100644 --- a/ratatoeskr/templates/src/systemtemplates/users.html +++ b/ratatoeskr/templates/src/systemtemplates/users.html @@ -39,7 +39,7 @@
- +
@@ -72,7 +72,7 @@
- +
-- cgit v1.2.3-54-g00ecf From 84d920ef69d88e16956f49d81f6a1ba0e1129c2d Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 26 May 2012 12:55:35 +0200 Subject: Better(?) tag editor. * Look&Feel of the Tag editor now matches better with the rest of the backend. * Deleted templates, functions and translations that are not longer needed. --- ratatoeskr/backend.php | 232 +++++++++------------ .../templates/src/systemtemplates/areyousure.html | 11 - .../src/systemtemplates/tags_overview.html | 45 ++-- ratatoeskr/translations/de.php | 13 +- ratatoeskr/translations/en.php | 13 +- 5 files changed, 134 insertions(+), 180 deletions(-) delete mode 100644 ratatoeskr/templates/src/systemtemplates/areyousure.html diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index a1ab570..3670137 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -39,25 +39,6 @@ function maketags($tagnames, $lang) return $rv; } -/* Generates Yes/No form / checks it. */ -function askyesno($ste, $callback, $question, $yes=NULL, $no=NULL, $moredetails="") -{ - if(isset($_POST["yes"])) - return True; - if(isset($_POST["no"])) - return False; - - $ste->vars["callback"] = $callback; - $ste->vars["question"] = $question; - if($yes !== NULL) - $ste->vars["yestext"] = $yes; - if($no !== NULL) - $ste->vars["notext"] = $no; - if($moredetails !== NULL) - $ste->vars["moredetails"] = $moredetails; - return $ste->exectemplate("/systemtemplates/areyousure.html"); -} - $backend_subactions = NULL; function build_backend_subactions() @@ -421,149 +402,136 @@ $backend_subactions = url_action_subactions(array( "tags" => function(&$data, $url_now, &$url_next) { global $translation, $languages, $ste, $rel_path_to_root; - $ste->vars["section"] = "content"; - $ste->vars["submenu"] = "tags"; - list($tagname, $tagaction) = $url_next; $url_next = array(); - if(isset($tagname)) + $ste->vars["section"] = "content"; + $ste->vars["submenu"] = "tags"; + $ste->vars["pagetitle"] = $translation["tags_overview"]; + + if(isset($_POST["delete"]) and ($_POST["really_delete"] == "yes")) { - try + foreach($_POST["tag_multiselect"] as $tagid) { - $tag = Tag::by_name($tagname); + try + { + $tag = Tag::by_id($tagid); + $tag->delete(); + } + catch(DoesNotExistError $e) + { + continue; + } } - catch(DoesNotExistError $e) + + $ste->vars["success"] = $translation["tags_successfully_deleted"]; + } + + if(isset($_POST["save_changes"])) + { + $newlang = (!empty($_POST["new_language"])) ? $_POST["new_language"] : NULL; + $newtag = NULL; + + if(!empty($_POST["newtagname"])) { - throw new NotFoundError(); + if((strpos(@$_POST["new_tag_name"], ",") !== False) or (strpos(@$_POST["new_tag_name"], " ") !== False)) + $ste->vars["error"] = $translation["invalid_tag_name"]; + else + $newtag = $_POST["newtagname"]; } - if(isset($tagaction)) + if(($newlang !== NULL) and (!isset($languages[$newlang]))) + $newlang = NULL; + if($newtag !== NULL) { - switch($tagaction) + try { - case "delete": - $ste->vars["pagetitle"] = str_replace("[[TAGNAME]]", $tag->name, $translation["delete_tag_pagetitle"]); - $yesnoresp = askyesno($ste, "$rel_path_to_root/backend/content/tags/{$tag->name}/delete", $translation["delete_comment_question"]); - if(is_string($yesnoresp)) - { - echo $yesnoresp; - return; - } - - if($yesnoresp) - { - $tag->delete(); - echo $ste->exectemplate("/systemtemplates/tag_deleted.html"); - } - else - goto backend_content_tags_overview; /* Hopefully no dinosaur will attack me: http://xkcd.com/292/ :-) */ - break; - case "addtranslation": - $ste->vars["pagetitle"] = $translation["tag_add_lang"]; - $ste->vars["tagname"] = $tag->name; - if(isset($_POST["addtranslation"])) - { - $errors = array(); - if(!isset($languages[@$_POST["language"]])) - $errors[] = $translation["language_unknown"]; - if(empty($_POST["translation"])) - $errors[] = $translation["no_translation_text_given"]; - if(empty($errors)) - { - $tag->title[$_POST["language"]] = new Translation($_POST["translation"], ""); - $tag->save(); - $ste->vars["success"] = $translation["tag_translation_added"]; - goto backend_content_tags_overview; - } - else - $ste->vars["errors"] = $errors; - } - echo $ste->exectemplate("/systemtemplates/tag_addtranslation.html"); - break; + $newtag = Tag::create($newtag); + } + catch(AlreadyExistsError $e) + { + $newtag = NULL; } } - } - else - { - backend_content_tags_overview: - if(isset($_POST["create_new_tag"])) + $translations = array(); + foreach($_POST as $k => $v) { - if((strpos(@$_POST["new_tag_name"], ",") !== False) or (strpos(@$_POST["new_tag_name"], " ") !== False) or (strlen(@$_POST["new_tag_name"]) == 0)) - $ste->vars["error"] = $translation["invalid_tag_name"]; - else + if(preg_match('/tagtrans_(NEW|[a-z]{2})_(.*)/', $k, $matches) == 1) { - try - { - $tag = Tag::create($_POST["new_tag_name"]); - $tag->title[$data["user"]->language] = new Translation($_POST["new_tag_name"], ""); - $tag->save(); - $ste->vars["success"] = $translation["tag_created_successfully"]; - } - catch(AlreadyExistsError $e) - { - $ste->vars["error"] = $translation["tag_name_already_in_use"]; - } + $lang = ($matches[1] == "NEW") ? $newlang : $matches[1]; + $tag = $matches[2]; + if($lang === NULL) + continue; + $translations[$tag][$lang] = $v; } } - if(isset($_POST["edit_translations"])) + foreach($translations as $tag => $langmap) { - $tagbuffer = array(); - foreach($_POST as $k => $v) + if($tag == "NEW") + { + if($newtag === NULL) + continue; + $tag = $newtag; + } + else { - if(preg_match("/^tagtrans_(.*?)_(.*)$/", $k, $matches)) + try { - if(!isset($languages[$matches[1]])) - continue; - - if(!isset($tagbuffer[$matches[2]])) - { - try - { - $tagbuffer[$matches[2]] = Tag::by_name($matches[2]); - } - catch(DoesNotExistError $e) - { - continue; - } - } - - if(empty($v) and isset($tagbuffer[$matches[2]]->title[$matches[1]])) - unset($tagbuffer[$matches[2]]->title[$matches[1]]); - elseif(empty($v)) - continue; - else - $tagbuffer[$matches[2]]->title[$matches[1]] = new Translation($v, ""); + $tag = Tag::by_id($tag); + } + catch(DoesNotExistError $e) + { + continue; } } - foreach($tagbuffer as $tag) - $tag->save(); + foreach($langmap as $l => $text) + { + if(empty($text)) + unset($tag->title[$l]); + else + $tag->title[$l] = new Translation($text, ""); + } - $ste->vars["success"] = $translation["tag_titles_edited_successfully"]; + $tag->save(); } - $ste->vars["pagetitle"] = $translation["tags_overview"]; - - $alltags = Tag::all(); - usort($alltags, function($a, $b) { return strcmp($a->name, $b->name); }); - $ste->vars["all_tag_langs"] = array(); - $ste->vars["alltags"] = array(); - foreach($alltags as $tag) - { - $tag_pre = array("name" => $tag->name, "translations" => array()); - foreach($tag->title as $langcode => $translation_obj) - { - $tag_pre["translations"][$langcode] = $translation_obj->text; - if(!isset($ste->vars["all_tag_langs"][$langcode])) - $ste->vars["all_tag_langs"][$langcode] = $languages[$langcode]["language"]; - } - $ste->vars["alltags"][] = $tag_pre; + $ste->vars["success"] = $translation["tags_successfully_edited"]; + } + + $ste->vars["alltags"] = array(); + $taglangs = array(); + + $alltags = Tag::all(); + foreach($alltags as $tag) + { + $transls = array(); + foreach($tag->title as $l => $t) + { + if(!in_array($l, $taglangs)) + $taglangs[] = $l; + $transls[$l] = $t->text; } - echo $ste->exectemplate("/systemtemplates/tags_overview.html"); + + $ste->vars["alltags"][] = array( + "id" => $tag->get_id(), + "name" => $tag->name, + "translations" => $transls + ); } + + $unused_langs = array_diff(array_keys($languages), $taglangs); + + $ste->vars["all_tag_langs"] = array(); + foreach($taglangs as $l) + $ste->vars["all_tag_langs"][$l] = $languages[$l]["language"]; + $ste->vars["unused_languages"] = array(); + foreach($unused_langs as $l) + $ste->vars["unused_languages"][$l] = $languages[$l]["language"]; + + echo $ste->exectemplate("/systemtemplates/tags_overview.html"); }, "articles" => function(&$data, $url_now, &$url_next) { diff --git a/ratatoeskr/templates/src/systemtemplates/areyousure.html b/ratatoeskr/templates/src/systemtemplates/areyousure.html deleted file mode 100644 index 0d40585..0000000 --- a/ratatoeskr/templates/src/systemtemplates/areyousure.html +++ /dev/null @@ -1,11 +0,0 @@ - - -
-

$question

- ?{$moredetails|

$moredetails

|} -
- - -
-
-
diff --git a/ratatoeskr/templates/src/systemtemplates/tags_overview.html b/ratatoeskr/templates/src/systemtemplates/tags_overview.html index 1f5b8d5..e82fd61 100644 --- a/ratatoeskr/templates/src/systemtemplates/tags_overview.html +++ b/ratatoeskr/templates/src/systemtemplates/tags_overview.html @@ -7,41 +7,52 @@ + - - + - - + + + + + + + + + +
  ($langcode) $langname + +
$tagdata[name] - <ste:get_translation for='delete' /> - $tagdata[name] - + - <ste:get_translation for='tag_add_lang' /> +
  + + + +
-
+
+ | +
- -
-

-
-

:

-

-
-
diff --git a/ratatoeskr/translations/de.php b/ratatoeskr/translations/de.php index 66c68d8..ae909b1 100644 --- a/ratatoeskr/translations/de.php +++ b/ratatoeskr/translations/de.php @@ -61,25 +61,18 @@ $translation = array( "allow_comments" => "Kommentare erlauben?", "article_name_already_in_use" => "Artikelname bereits vergeben.", "article_save_success" => "Artikel erfolgreich abgespeichert.", - "delete_tag_pagetitle" => "\"[[TAGNAME]]\" löschen", - "delete_comment_question" => "Möchtest du diesen Tag löschen?", - "tag_deleted" => "Tag gelöscht.", - "back_to_tags" => "Zurück zu Inhalt::Tags", - "create_new_tag" => "Neuen Tag erstellen", + "tags_successfully_deleted" => "Tags erfolgreich gelöscht.", "new_tag_name" => "Name", + "tags_successfully_edited" => "Tags erfolgreich bearbeitet." "tags_overview" => "Tag Übersicht", "tag_name" => "Tag Name", "yes" => "Ja", "no" => "Nein", "tag_add_lang" => "Übersetzung hinzufügen", + "save_changes" => "Änderungen speichern", "language_unknown" => "Unbekannte Sprache", - "no_translation_text_given" => "Kein Übersetzungstext angegeben.", "translation_added_successfully" => "Übersetzung erfolgreich hinzufügefügt.", - "tag_translation_added" => "Übersetzung hinzugefügt.", "invalid_tag_name" => "Ungülter Tagname. Ein Tagname darf keine Kommas (,) oder Leerzeichen ( ) enthalten und darf nicht leer sein.", - "tag_name_already_in_use" => "Tagname bereits vergeben.", - "tag_created_successfully" => "Tag erfolgreich erstellt.", - "tag_titles_edited_successfully" => "Tagtitel erfolgreich geändert.", "available_languages" => "Verfügbare Sprachen", "tags" => "Tags", "section" => "Sektion", diff --git a/ratatoeskr/translations/en.php b/ratatoeskr/translations/en.php index 27374c6..86e17a2 100644 --- a/ratatoeskr/translations/en.php +++ b/ratatoeskr/translations/en.php @@ -61,25 +61,18 @@ $translation = array( "allow_comments" => "Allow comments?", "article_name_already_in_use" => "Article name is already in use.", "article_save_success" => "Article successfully saved.", - "delete_tag_pagetitle" => "Delete \"[[TAGNAME]]\"", - "delete_comment_question" => "Do you want to delete this tag?", - "tag_deleted" => "Tag was deleted.", - "back_to_tags" => "Go back to Content::Tags", - "create_new_tag" => "Create a new Tag", + "tags_successfully_deleted" => "Tags successfully deleted.", "new_tag_name" => "Name", + "tags_successfully_edited" => "Successfully edited tags.", "tags_overview" => "Tag Overview", "tag_name" => "Tag name", "yes" => "Yes", "no" => "No", "tag_add_lang" => "Add translation", + "save_changes" => "Save changes", "language_unknown" => "Unknown language", - "no_translation_text_given" => "No translation text given.", "translation_added_successfully" => "Translation added successfully.", - "tag_translation_added" => "Translation added.", "invalid_tag_name" => "Invalid tag name. A tag name can not contain commas (,) or spaces ( ) and must not be empty.", - "tag_name_already_in_use" => "Tag name already in use.", - "tag_created_successfully" => "Tag created successfully.", - "tag_titles_edited_successfully" => "Tag titles changed successfully.", "available_languages" => "Available languages", "tags" => "Tags", "section" => "Section", -- cgit v1.2.3-54-g00ecf From 3d406946eea06096c780054e173ebdbb0f787ceb Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 26 May 2012 12:57:41 +0200 Subject: Better .listtab style * Text inputs in the cells of a table.listtab are now extended to the full cell width. * Explicit padding of cells. --- ratatoeskr/cms_style/layout.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ratatoeskr/cms_style/layout.css b/ratatoeskr/cms_style/layout.css index fde0fac..53ab8e0 100644 --- a/ratatoeskr/cms_style/layout.css +++ b/ratatoeskr/cms_style/layout.css @@ -241,6 +241,10 @@ table.listtab td { border-top: 1px solid #eee; } +table.listtab th, table.listtab td { + padding: 0mm 1mm 0mm; +} + table.listtab tr:first-child td { border-top: 1px solid #666; } @@ -249,6 +253,10 @@ table.listtab tbody tr:hover { background: #eee; } +table.listtab tbody input[type="text"] { + width: 100%; +} + textarea.codeedit { font-family: monospace; } -- cgit v1.2.3-54-g00ecf From 26bd77a253cd0ff4b53ad76c05d53a07d84b2b2f Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 26 May 2012 13:21:14 +0200 Subject: Awesome background / watermark for backend. Many pages had a lot of empty white space, that watermark fills this space without being too annoying. --- ratatoeskr/cms_style/images/backendbg.png | Bin 0 -> 4816 bytes ratatoeskr/cms_style/layout.css | 1 + 2 files changed, 1 insertion(+) create mode 100644 ratatoeskr/cms_style/images/backendbg.png diff --git a/ratatoeskr/cms_style/images/backendbg.png b/ratatoeskr/cms_style/images/backendbg.png new file mode 100644 index 0000000..995e8cf Binary files /dev/null and b/ratatoeskr/cms_style/images/backendbg.png differ diff --git a/ratatoeskr/cms_style/layout.css b/ratatoeskr/cms_style/layout.css index 53ab8e0..aac132a 100644 --- a/ratatoeskr/cms_style/layout.css +++ b/ratatoeskr/cms_style/layout.css @@ -19,6 +19,7 @@ a:hover { body, html { margin: 0px; padding:0px; + background: white url(images/backendbg.png) bottom right no-repeat fixed; } hr { -- cgit v1.2.3-54-g00ecf From 04b47bc50dd147ad2156a29bdb274049f99d9bce Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 26 May 2012 21:42:51 +0200 Subject: Added missing comma in translations/de.php --- ratatoeskr/translations/de.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratatoeskr/translations/de.php b/ratatoeskr/translations/de.php index ae909b1..56ebf4e 100644 --- a/ratatoeskr/translations/de.php +++ b/ratatoeskr/translations/de.php @@ -63,7 +63,7 @@ $translation = array( "article_save_success" => "Artikel erfolgreich abgespeichert.", "tags_successfully_deleted" => "Tags erfolgreich gelöscht.", "new_tag_name" => "Name", - "tags_successfully_edited" => "Tags erfolgreich bearbeitet." + "tags_successfully_edited" => "Tags erfolgreich bearbeitet.", "tags_overview" => "Tag Übersicht", "tag_name" => "Tag Name", "yes" => "Ja", -- cgit v1.2.3-54-g00ecf