public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
Style for edit and list
webs (author)
Fri Feb 01 10:39:08 -0800 2008
commit  e1e2686de433e36ea443e5f2014785e688f1b3c1
tree    4693358a30680a0dfa608dc20f13bf5dd2476af9
parent  555a1ee2e600e64da87fd8e1d9164cac7c34e7f7
...
40
41
42
43
 
44
45
46
...
80
81
82
83
 
84
85
86
...
117
118
119
 
 
 
 
 
 
 
 
 
120
121
122
...
134
135
136
 
 
137
138
139
...
40
41
42
 
43
44
45
46
...
80
81
82
 
83
84
85
86
...
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
...
143
144
145
146
147
148
149
150
0
@@ -40,7 +40,7 @@ class Page
0
   end
0
 
0
   def to_s
0
- "<li><a href='/#{@name}'>#{@name}</a> (<a href='/e/#{@name}'>edit</a>)</li>"
0
+ "<li><strong class='pname'><a href='/#{@name}'>#{@name}</a></strong> (<a href='/e/#{@name}'>edit</a>)</li>"
0
   end
0
 end
0
 
0
@@ -80,7 +80,7 @@ def layout(title, content)
0
 %html
0
   %head
0
     %title #{title}
0
- %link{:rel => 'stylesheet', :href => '_stylesheet.css', :type => 'text/css', :media => 'screen'}
0
+ %link{:rel => 'stylesheet', :href => '/_stylesheet.css', :type => 'text/css', :media => 'screen'}
0
   %body
0
     #navigation
0
       %a{:href => '/'} Home
0
@@ -117,6 +117,15 @@ h1
0
   display: block
0
   border-bottom: 1px solid black
0
 
0
+a
0
+ color: black
0
+
0
+a:hover
0
+ text-decoration: none
0
+
0
+.pname
0
+ font-size: 14px
0
+
0
 .edit_link
0
   a
0
     color: black
0
@@ -134,6 +143,8 @@ def edit
0
         ="<textarea name ='body' rows='30' cols='120'>#{@page.raw_body}</textarea>"
0
       %p
0
         %input{ :type => :submit, :value => 'save!' }
0
+ &nbsp;
0
+ %a{ :href => 'javascript:history.back()' } do not want
0
   ))
0
 end
0
 

Comments

    No one has commented yet.