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
Search Repo:
working launchd plist, better formatting on branch history and branches 
pages, informative title attributes on links with actions, confirmation of 
reverting page to older revision
al3x (author)
Wed Mar 19 23:59:59 -0700 2008
commit  e001e65f956f5f41225414bab75efb899ec16e28
tree    cf6dbffa1e739c5d9c85c0efe9cf9f6a10c2688e
parent  dd3cffa1e7adc8dcc9a472692931580daf8d7c41
0
...
19
20
21
22
23
24
 
25
26
27
...
19
20
21
 
22
23
24
25
26
27
0
@@ -19,9 +19,9 @@
0
   * outliner functionality
0
   * menubar item launcher (like Instiki back in the day)
0
   * RubyCocoa GUI
0
- * working launchd plist
0
   
0
 = DONE
0
+ * working launchd plist
0
   * in-place editing
0
   * fix duplication of routes/methods to accommodate file extensions
0
   * "append selected text/link to page" bookmarklet (shamelessly cribbed
...
61
62
63
 
 
64
65
66
...
101
102
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
105
106
...
61
62
63
64
65
66
67
68
...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
0
@@ -61,6 +61,8 @@
0
 .cancel:before { content: "("; }
0
 .cancel:after { content: ")" }
0
 
0
+.clearer { clear: both; }
0
+
0
 .content {
0
   margin-left: 35%;
0
   padding: 10px 10px 2px 10px;
0
@@ -101,6 +103,23 @@
0
 .nav_list li {
0
   display: inline;
0
   padding-right: 10px;
0
+}
0
+
0
+.niceform label, .niceform input[type=text] {
0
+ display: block;
0
+ width: 200px;
0
+ float: left;
0
+ margin-bottom: 10px;
0
+}
0
+
0
+.niceform label {
0
+ text-align: right;
0
+ width: 150px;
0
+ padding-right: 20px;
0
+}
0
+
0
+.niceform br {
0
+ clear: left;
0
 }
0
 
0
 .right { text-align: right; }
...
3
4
5
6
 
7
8
 
9
10
11
...
13
14
15
16
 
17
18
19
20
...
23
24
25
 
26
27
28
29
 
 
 
 
 
 
 
30
31
...
3
4
5
 
6
7
8
9
10
11
12
...
14
15
16
 
17
18
19
20
21
...
24
25
26
27
28
29
30
 
31
32
33
34
35
36
37
38
39
0
@@ -3,9 +3,10 @@
0
 <plist version="1.0">
0
   <dict>
0
     <key>Label</key>
0
- <string>ruby.gitwiki.server</string>
0
+ <string>ruby.server.gitwiki</string>
0
     
0
     <key>WorkingDirectory</key>
0
+ <!-- change to path to your clone of git-wiki -->
0
     <string>/Users/al3x/src/git-wiki</string>
0
     
0
     <key>Program</key>
0
@@ -13,7 +14,7 @@
0
     
0
     <key>ProgramArguments</key>
0
     <array>
0
- <string>/Users/al3x/wiki</string>
0
+ <string>-e production</string>
0
     </array>
0
     
0
     <key>KeepAlive</key>
0
0
@@ -23,10 +24,17 @@
0
     <true/>
0
     
0
     <key>UserName</key>
0
+ <!-- change to your username -->
0
     <string>al3x</string>
0
     
0
     <key>Debug</key>
0
- <true/>
0
+ <false/>
0
+
0
+ <key>EnvironmentVariables</key>
0
+ <dict>
0
+ <key>PATH</key>
0
+ <string>/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</string>
0
+ </dict>
0
   </dict>
0
 </plist>
...
1
 
2
3
4
5
6
7
8
9
...
7
8
9
10
 
11
12
 
13
14
15
16
17
18
 
 
 
 
 
19
20
 
 
 
21
22
23
24
25
26
27
28
29
 
 
30
31
 
32
...
 
1
2
3
4
5
6
7
8
9
...
7
8
9
 
10
11
 
12
13
 
 
 
 
 
14
15
16
17
18
19
 
20
21
22
23
 
 
 
 
 
 
 
 
24
25
26
 
27
28
0
@@ -1,4 +1,4 @@
0
-<h1>History</h1>
0
+<h1>Branch History</h1>
0
 
0
 <div class="sub_nav">
0
   <a href="/a/branches" class="nav_link"><%= $repo.current_branch %> branch</a><br />
0
0
0
0
0
0
@@ -7,27 +7,23 @@
0
 
0
 <div class="content">
0
   <br />
0
- <table>
0
+ <ul>
0
   <% @history.each do |commit| %>
0
- <tr>
0
+ <li>
0
       <% if commit != @history.first %>
0
- <td>
0
- <code>
0
- <a href="/a/revert_branch/<%= commit.sha %>"><%= commit.sha[0, 8] %></a>
0
- </code>
0
- </td>
0
+ <a href="/a/revert_branch/<%= commit.sha %>" title="Click to revert to this revision." onclick="return confirm('Are you sure you want to revert to this revision?');">
0
+ <script type="text/javascript">
0
+ document.write(time_ago_in_words(<%= commit.date.for_time_ago_in_words %>) + ' ago:');
0
+ </script>
0
+ </a>
0
       <% else %>
0
- <td><code><%= commit.sha[0, 8] %></code></td>
0
+ <script type="text/javascript">
0
+ document.write(time_ago_in_words(<%= commit.date.for_time_ago_in_words %>) + ' ago:');
0
+ </script>
0
       <% end %>
0
- <td>
0
- <script type="text/javascript">
0
- document.write(time_ago_in_words(<%= commit.date.for_time_ago_in_words %>) + ' ago');
0
- </script>
0
- </td>
0
- <td><%= commit.message %></td>
0
- <td><%= commit.name %></td>
0
- </tr>
0
+ <%= commit.message %>
0
+ </li>
0
   <% end %>
0
- </table>
0
+ </ul>
0
 </div>
...
17
18
19
20
 
21
22
23
24
25
26
 
27
28
29
30
31
 
32
33
 
 
34
35
36
 
 
 
 
 
37
38
39
40
41
42
43
44
 
45
46
47
...
17
18
19
 
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
40
41
42
43
44
45
46
47
48
 
 
 
 
49
50
51
52
0
@@ -17,31 +17,36 @@
0
 
0
 <div class="content">
0
   <h2>New Branch</h2>
0
- <form method="post" action="/a/new_branch"">
0
+ <form method="post" action="/a/new_branch" class="niceform">
0
     <label for="name">name</label>
0
     <input type="text" name="branch" />
0
     <br />
0
     
0
     <label for="derive_radio">copy this branch</label>
0
     <input type="radio" name="type" value="derive" />
0
+ <br />
0
     
0
     <label for="blank_radio">empty branch</label>
0
     <input type="radio" name="type" value="blank" />
0
     <br />
0
     
0
+ <label for="submit"></label>
0
     <input type="submit" value="create" class="submit" />
0
   </form>
0
+
0
+ <p class="clearer">
0
 
0
   <h2>New Remote Branch</h2>
0
- <form method="post" action="/a/new_remote">
0
+ <form method="post" action="/a/new_remote" class="niceform">
0
+ <label for="branch_name">name</label>
0
+ <input type="text" name="branch_name">
0
+ <br />
0
+
0
     <label for="branch_url">url</label>
0
     <input type="text" name="branch_url">
0
     <br />
0
 
0
- <label for="branch_name">name</label>
0
- <input type="text" name="branch_name">
0
- <br />
0
-
0
+ <label for="submit"></label>
0
     <input type="submit" value="create" class="submit" />
0
   </form>
0
 </div>
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 <h1>Editing <a href="/<%= @page.name %>"><%= @page.name %></a></h1>
0
 
0
+<%= $repo.gtree('HEAD').children.keys %>
0
+
0
 <div class="sub_nav">
0
   <a href="/<%= @page.name %>" class="nav_link">back</a>
0
   
...
1
 
2
3
4
 
5
6
7
...
 
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
-<h1>History / <a href="/<%= @page.name %>"><%= @page.name %></a></h1>
0
+<h1>History of <a href="/<%= @page.name %>"><%= @page.name %></a></h1>
0
 
0
 <div class="sub_nav">
0
- <a href="/<%= @page.name %>" class="nav_link">back</a> &bull;
0
+ <a href="/<%= @page.name %>" class="nav_link">current</a> &bull;
0
   <a href="/e/<%= @page.name %>" class="nav_link">edit</a>
0
 </div>
0
 
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@
0
           <strong><a href="/<%= page.name %>"><%= page.name %></a></strong> &mdash;
0
           <a href="/e/<%= page.name %>">edit</a> &bull;
0
           <a href="/h/<%= page.name %>">history</a> &bull;
0
- <a href="javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q != '') location.href='<%= page_url(page.name) %>/append?text='+encodeURIComponent(q+' (from &quot;'+document.title+'&quot;:'+location.href+')'); else location.href='<%= page_url(page.name) %>/append?text='+encodeURIComponent('&quot;'+document.title+'&quot;:'+location.href);"">bookmarklet</a>
0
+ <a href="javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q != '') location.href='<%= page_url(page.name) %>/append?text='+encodeURIComponent(q+' (from &quot;'+document.title+'&quot;:'+location.href+')'); else location.href='<%= page_url(page.name) %>/append?text='+encodeURIComponent('&quot;'+document.title+'&quot;:'+location.href);" title="Click to save current page in browser to '<%= page.name %>' page. Select text to save it along with the link.">bookmarklet</a>
0
         </li>
0
       <% end %>
0
     </ul>

Comments

    No one has commented yet.