From: Michael Tremer Date: Sat, 4 May 2013 17:24:13 +0000 (+0200) Subject: planet: Add proper tag search function. X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=commitdiff_plain;h=8876f3df273f2cdde20fb9b3855a05bea0213466 planet: Add proper tag search function. --- diff --git a/static/js/site.js b/static/js/site.js index f8e535c..83c3bb3 100644 --- a/static/js/site.js +++ b/static/js/site.js @@ -48,7 +48,7 @@ if (/.*download-splash.*/i.test(window.location.href)) { $(".planet-search-autocomplete").typeahead({ source: function(query, process) { - $.get("http://planet.ipfire.org/api/search/autocomplete", { q: query }, function(data) { + $.get("/api/planet/search/autocomplete", { q: query }, function(data) { if (data.query == query) { process(data.results); } diff --git a/templates/admin-planet-compose.html b/templates/admin-planet-compose.html index 04fe68c..edf8fab 100644 --- a/templates/admin-planet-compose.html +++ b/templates/admin-planet-compose.html @@ -1,41 +1,54 @@ {% extends "admin-base.html" %} -{% block bodyA %} -
-

{{ _("Compose new entry") }}

-
- {% raw xsrf_form_html() %} - {% if entry.id %} - - {% end %} - - - - - - - - - - - - - -
{{ _("Title") }}
  - -
- - -
-
+{% block body %} + +
+ {% raw xsrf_form_html() %} + + {% if entry.id %} + + {% end %} + +
+ +
+ +
+
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+
+ + {{ _("Preview") }} + {{ _("Cancel") }} +
+
+