]> git.parisson.com Git - telemeta.git/commitdiff
fix more relative urls for static files (images) or services (json)
authorardour <ardour@marvin>
Wed, 15 Jun 2011 17:19:56 +0000 (19:19 +0200)
committerardour <ardour@marvin>
Wed, 15 Jun 2011 17:19:56 +0000 (19:19 +0200)
telemeta/htdocs/css/telemeta.css
telemeta/htdocs/js/application.js
telemeta/templates/telemeta_default/base.html
telemeta/urls.py

index 4d957f1e9a501680767aacf093b294bb0bf2c972..0cde486f472847a5863419a2ec1935700df0f8e6 100644 (file)
@@ -103,7 +103,7 @@ a img { border: none; }
 
 #header {
     padding: 0.2em 0;
-    background: url("/images/waves.png") 100% 0% no-repeat;
+    background: url("../images/waves.png") 100% 0% no-repeat;
 }
 
 #content_header, #header{
@@ -948,7 +948,7 @@ a.image-link {
     padding:2px;
 }
 .markerdiv .ts-marker{
-    background-image: url('/images/marker_tiny.png'); text-align: center; min-width:3ex;
+    background-image: url(../images/marker_tiny.png'); text-align: center; min-width:3ex;
 }
 .markerdiv .ts-marker, .markerdiv .markersdivOffset, .markerdiv .markersdivTitle, .markerdiv .markersdivAddPlaylist, .markerdiv .markersdivEdit{margin-right:.8ex;}
 .markerdiv div a, .markerdiv div a:visited, .markerdiv div a:hover{
@@ -963,9 +963,9 @@ a.image-link {
 .markerdiv .ts-marker, .markerdiv .ts-marker:hover, .markerdiv .ts-marker:visited{
     font-family: monospace; background: #e65911;color: #FFF;padding-left: .3ex; padding-right:.3ex;
 }
-.markersdivDelete{    background-image: url('/images/del_marker.png');width:15px;height:2ex;background-repeat: no-repeat;}
+.markersdivDelete{    background-image: url('../images/del_marker.png');width:15px;height:2ex;background-repeat: no-repeat;}
 /*backfround-repeat is redundant with .markerDiv a,.. defined above but this way .markersDivDelete is re-usable in other context (eg popupdiv*/
-.markersdivAddPlaylist{    background-image: url('/images/add_playlist_marker.png');width:13px;height:2ex; }
+.markersdivAddPlaylist{    background-image: url('../images/add_playlist_marker.png');width:13px;height:2ex; }
 .markersdivTitle{    font-weight:bold;}
 .markersdivEdit, .markersdivEdit:hover, .markersdivEdit:visited{
     line-height: normal;
@@ -975,7 +975,7 @@ a.image-link {
     font-size: 65%;
     border:2px solid #666;
     background-color: #fff;
-    background-image: url('/images/edit_marker.png');
+    background-image: url('../images/edit_marker.png');
     -moz-border-radius: 1ex; -webkit-border-radius: 1ex; border-radius: 1ex;
 }
 .markersdivSave, .markersdivSave:hover, .markersdivSave:visited{
@@ -985,7 +985,7 @@ a.image-link {
     padding:.7ex; padding-left: 20px;
     background-position: 5px center;
     -moz-border-radius: 1ex;-webkit-border-radius: 1ex;border-radius: 1ex;
-    background-image: url('/images/ok.png');
+    background-image: url('../images/ok.png');
 }
 .markerdiv{ 
     border: 1px solid #aaaaaa;
@@ -1049,55 +1049,55 @@ a.image-link {
 }
 
 .icon_edit{
-    background-image: url('/images/edit_page.png'); 
+    background-image: url('../images/edit_page.png'); 
 }
 .icon_copy{
-    background-image: url('/images/copy_page.png');
+    background-image: url('../images/copy_page.png');
 }
 .icon_previous{
-    background-image: url('/images/previous.png');
+    background-image: url('../images/previous.png');
 }
 .icon_next{
-    background-image: url('/images/next.png');
+    background-image: url('../images/next.png');
 }
 .icon_dublin_core{
-    background-image: url('/images/dublin_core.png');
+    background-image: url('../images/dublin_core.png');
 }
 .icon_cancel{
-    background-image: url('/images/cancel.png');
+    background-image: url('../images/cancel.png');
 }
 .icon_save{
-    background-image: url('/images/save.png');
+    background-image: url('../images/save.png');
 }
 .icon_add{
-    background-image: url('/images/add.png');
+    background-image: url('../images/add.png');
 }
 .icon_add_to_playlist{
-    background-image: url('/images/add_to_playlist.png');
+    background-image: url('../images/add_to_playlist.png');
 }
 .icon_login{
-    background-image: url('/images/password.png');
+    background-image: url('../images/password.png');
 }
 .icon_search{
-    background-image: url('/images/find.png');
+    background-image: url('../images/find.png');
 }
 .icon_ok{
-    background-image: url('/images/ok.png');
+    background-image: url('../images/ok.png');
 }
 .icon_csv{
-    background-image: url('/images/csv.png');
+    background-image: url('../images/csv.png');
 }
 .icon_playlist{
-    background-image: url('/images/playlist.png');
+    background-image: url('../images/playlist.png');
 }
 .icon_filter{
-    background-image: url('/images/filter.png');
+    background-image: url('../images/filter.png');
 }
 .icon_delete{
-    background-image: url('/images/delete.png');
+    background-image: url('../images/delete.png');
 }
 .icon_rss,.icon_rss:hover{
-    background: url('/images/feed-icon-14x14.png') no-repeat;
+    background: url('../images/feed-icon-14x14.png') no-repeat;
     background-position: 0ex .8ex;
     padding:.0ex 0ex .8ex .7ex;
     text-decoration: none;
@@ -1171,4 +1171,4 @@ a:focus,div:focus{
 }
 input,textarea{
     outline: none !important;
-}
\ No newline at end of file
+}
index d616a5434cc636458015b34c2449c604102e2e57..02fb572fcfad6298a7d654a6ef3bfb28a46f8290 100644 (file)
@@ -183,7 +183,7 @@ var json = function(param,method,onSuccessFcn,onErrorFcn){
     var $J = jQuery;\r
     $J.ajax({\r
         type: "POST",\r
-        url: '/json/',\r
+        url: 'json/',\r
         contentType: "application/json",\r
         data: data2send,\r
         dataType: "json",\r
@@ -228,4 +228,4 @@ function consolelog(text){
             c.log(text);\r
         }\r
     }\r
-}
\ No newline at end of file
+}\r
index 89e0e9145f5154b2f85fa4deef467e0a5fffa7e3..5c28ef7f052b4a1e785fc101161c5d95b4e24187 100644 (file)
@@ -78,7 +78,7 @@
 {% block menu %}
 
 {# spaces between li and a elements breaks layout #}
- <a href="/" class="darkblue">{% trans "Home" %}</a>
+ <a href="{% url telemeta-home %}" class="darkblue">{% trans "Home" %}</a>
  <a href="{% url telemeta-collections %}" class="blue">{% trans "Collections" %}</a>
  <a href="{% url telemeta-items %}" class="green">{% trans "Items" %}</a>
  <a href="{% url telemeta-geo-continents %}" class="yellow">{% trans "Geo Navigator" %}</a>
index 0d09c6d8b125e2de17ceaf1a084152944311b04e..de90329a1315f3b1411bf5882ef15c41c7216e21 100644 (file)
@@ -246,9 +246,9 @@ urlpatterns = patterns('',
     url(r'^accounts/password_reset_complete/$', 'django.contrib.auth.views.password_reset_complete', {'template_name': 'telemeta/registration/password_reset_complete.html'}, name="telemeta-password-reset-complete"),
        
     # JSON RPC
-    url(r'^json/$', jsonrpc_site.dispatch, name='jsonrpc_mountpoint'),
+    url(r'json/$', jsonrpc_site.dispatch, name='jsonrpc_mountpoint'),
     # for the graphical browser/web console only, omissible
-    url(r'^json/browse/', 'jsonrpc.views.browse', name="jsonrpc_browser"), 
+    url(r'json/browse/', 'jsonrpc.views.browse', name="jsonrpc_browser"), 
     # for HTTP GET only, also omissible
     #url(r'^json/(?P<method>[a-zA-Z0-9.]+)$', jsonrpc_site.dispatch),