Podlinkowanie logo do strony głównej.
authorzuber <marek@stepniowski.com>
Tue, 9 Feb 2010 12:56:50 +0000 (13:56 +0100)
committerzuber <marek@stepniowski.com>
Tue, 9 Feb 2010 12:56:50 +0000 (13:56 +0100)
platforma/static/css/master.css
platforma/templates/wiki/document_details.html
platforma/urls.py

index 9d3efec..faa67ac 100755 (executable)
@@ -61,7 +61,7 @@ body {
     font-weight: bold;
 }
 
-#header h1 {
+#header h1, #header h1 a {
     margin: 0;
     padding: 0;
     font: 17px Helvetica, Verdana, sans-serif;
@@ -72,6 +72,11 @@ body {
     line-height: 20px;
 }
 
+#header h1 a {
+    text-decoration: none;
+    color: #222;
+}
+
 #tabs {
     margin: 0;
     padding: 0;
index ad71c84..dcd43d1 100644 (file)
@@ -28,7 +28,7 @@
         </div>
         <div id="header">
             <div id="tools" style="float: right;">Wersja: <span id="document-revision">{{ document.revision }}</span> <button style="margin-left: 6px" id="save-button">Zapisz</button></div>
-            <h1>Platforma</h1>
+            <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
             <ol id="tabs">
                 <li id="simple-view-tab"><span id="document-name">{{ document.name }}</span></li>
                 <li id="source-view-tab" class="active">Kod źródłowy</li>
index 19dfc03..ea9ba25 100755 (executable)
@@ -8,33 +8,31 @@ admin.autodiscover()
 PATH_SEC = r"(?P<path>[^/]+)"
 PATH_END = PATH_SEC + "/$"
 
-urlpatterns = patterns('',
-    # Explorer:
-    # url(r'^$', 'explorer.views.file_list', name='file_list'),        
-    # url(r'^file/upload', 'explorer.views.file_upload', name='file_upload'),    
 
-    # url(r'^management/pull-requests$', 'explorer.views.pull_requests'),
-  
-    # Editor panels
-    # url(r'^editor/'+PATH_END, 'explorer.views.display_editor', name='editor_view'),
-    # url(r'^editor/$', 'explorer.views.file_list', name='editor_base'),
 
-    # url(r'^file/(?P<docid>[^/]+)/print$', 'explorer.views.print_html', name="file_print"),
+urlpatterns = patterns('')
 
+if 'cas_consumer' in settings.INSTALLED_APPS:
+    urlpatterns += patterns('',
+        # django-cas-consumer
+        url(r'^accounts/login/$', 'cas_consumer.views.login', name='login'),
+        url(r'^accounts/logout/$', 'cas_consumer.views.logout', name='logout'),
+    )
+else:
+    urlpatterns += patterns('',
+        # Django auth
+        url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'redirect_field_name': 'next'}, name='login'),
+        url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),    
+    )
+
+urlpatterns += patterns('',
     url(r'^$', 'wiki.views.document_list'),
-    
+    url(r'^gallery/(?P<directory>[^/]+)$', 'wiki.views.document_gallery'),
+        
     # Admin panel
     (r'^admin/filebrowser/', include('filebrowser.urls')),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/(.*)', admin.site.root),
-
-    # Theme database
-    # url(r'themes/', include('bookthemes.urls')),
-
-    # Our über-restful api
-    # url(r'^api/', include('api.urls')),
-    
-    url(r'^gallery/(?P<directory>[^/]+)$', 'wiki.views.document_gallery'),
     
     # Static files (should be served by Apache)
     url(r'^%s(?P<path>.+)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
@@ -46,15 +44,3 @@ urlpatterns = patterns('',
     
 )
 
-if 'cas_consumer' in settings.INSTALLED_APPS:
-    urlpatterns += patterns('',
-        # django-cas-consumer
-        url(r'^accounts/login/$', 'cas_consumer.views.login', name='login'),
-        url(r'^accounts/logout/$', 'cas_consumer.views.logout', name='logout'),
-    )
-else:
-    urlpatterns += patterns('',
-        # Django auth
-        url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'redirect_field_name': 'next'}, name='login'),
-        url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),    
-    )