Commit 2f5f00693872bb4e82827776d285a9565743d344

Moved FAQ out to a seperate page

Commit diff

app/controllers/site_controller.rb

 
2020 def about
2121 end
2222
23 def faq
24 end
25
2326end
toggle raw diff

app/views/layouts/application.html.erb

 
3838 <li><%= link_to "Dashboard", dashboard_path -%></li>
3939 <% end -%>
4040 <li><%= link_to "Projects", projects_path -%></li>
41 <% if logged_in? -%>
42 <li><%= link_to "FAQ", faq_path -%></li>
43 <% else -%>
4144 <li><%= link_to "About", about_path -%></li>
45 <% end -%>
4246 </ul>
4347 </div>
4448 <div id="submenu">
7676 <ul>
7777 <li><%= link_to "Home", root_path -%> | </li>
7878 <li><%= link_to "About", about_path -%> | </li>
79 <li><%= link_to "FAQ", faq_path -%> | </li>
7980 <li><%= link_to "Discussion group", "http://groups.google.com/group/gitorious" -%></li>
8081 </ul>
8182 </div>
toggle raw diff

app/views/site/about.html.erb

 
5252 </p>
5353</div>
5454
55<div class="section">
56 <a name="faq"></a><h1>FAQ</h1>
57
58 <h3>I get "fatal: no matching remote head" when trying to clone a repository</h3>
59 <p>
60 Most likely the repository you're trying to clone is empty, and the error
61 message is git's friendly way of telling you that. See below (or by clicking
62 "more info" next to repositorys "push url") for info on how t push to it.
63 </p>
64
65 <hr />
66
67 <h3>How do I point my local Git repository at Gitorious?</h3>
68 <p>
69 Easiest way is to put something like the following in your <code>.git/config</code>
70 file of the repository you wish to push:
71 <pre>
72 [remote "origin"]
73 url = git@gitorious.org:<em>project</em>/<em>repository.git</em>
74 fetch = +refs/heads/*:refs/remotes/origin/*
75 [branch "master"]
76 remote = origin
77 merge = refs/heads/master
78 </pre>
79 and then <code>git push origin master</code> to push the code to Gitorious.
80 </p>
81 <p>
82 You can also just run "<code>git push git@gitorious.org:tumbline/mainline.git</code>", or
83 you can setup a remote by doing the following (add --fetch to the add call to
84 get the config from above):
85 <pre>
86 git remote add origin git@gitorious.org:<em>project</em>/<em>repository.git</em>
87 # to push the master branch to the origin remote we added above:
88 git push origin master
89 # after that you can just do:
90 git push
91 </pre>
92 </p>
93
94 <hr />
95
96 <h3>Why is my email displayed?</h3>
97 <p>
98 The email you used to signup with Gitorious is displayed to other users, so that they
99 can contact you about your projects if they need to. We do however take light
100 measures against crawlers by not displaying your email in completely plain text. <br />
101 But just to be clear: we won't sell or use any information you give to
102 gitorious.org against you or anyone else for financial and/or personal gains.
103 </p>
104
105 <hr />
106
107 <h3>Why do I need to upload my public SSH key?</h3>
108 <p>
109 When you push to a Git repository, your public key is how we authenticate
110 you and if have the permissions required to do a commit to a given repository
111 </p>
112</div>
113
11455<% content_for :sidebar do -%>
11556 <ul class="links">
11657 <li><a href="#about">About</a></li>
11758 <li><a href="#contact">Contact</a></li>
118 <li><a href="#faq">FAQ</a></li>
59 <li><%= link_to "FAQ", faq_path -%></li>
11960 </ul>
12061<% end -%>
toggle raw diff

app/views/site/faq.html.erb

 
1<h1>FAQ</h1>
2
3<h3>I get "fatal: no matching remote head" when trying to clone a repository</h3>
4<p>
5 Most likely the repository you're trying to clone is empty, and the error
6 message is git's friendly way of telling you that. See below (or by clicking
7 "more info" next to repositorys "push url") for info on how t push to it.
8</p>
9
10<hr />
11
12<h3>How do I point my local Git repository at Gitorious?</h3>
13<p>
14 Easiest way is to put something like the following in your <code>.git/config</code>
15 file of the repository you wish to push:
16<pre>
17[remote "origin"]
18 url = git@gitorious.org:<em>project</em>/<em>repository.git</em>
19 fetch = +refs/heads/*:refs/remotes/origin/*
20[branch "master"]
21 remote = origin
22 merge = refs/heads/master
23</pre>
24 and then <code>git push origin master</code> to push the code to Gitorious.
25</p>
26<p>
27 You can also just run "<code>git push git@gitorious.org:tumbline/mainline.git</code>", or
28 you can setup a remote by doing the following (add --fetch to the add call to
29 get the config from above):
30 <pre>
31 git remote add origin git@gitorious.org:<em>project</em>/<em>repository.git</em>
32 # to push the master branch to the origin remote we added above:
33 git push origin master
34 # after that you can just do:
35 git push
36 </pre>
37</p>
38
39<hr />
40
41<h3>Why is my email displayed?</h3>
42<p>
43 The email you used to signup with Gitorious is displayed to other users, so that they
44 can contact you about your projects if they need to. We do however take light
45 measures against crawlers by not displaying your email in completely plain text. <br />
46 But just to be clear: we won't sell or use any information you give to
47 gitorious.org against you or anyone else for financial and/or personal gains.
48</p>
49
50<hr />
51
52<h3>Why do I need to upload my public SSH key?</h3>
53<p>
54 When you push to a Git repository, your public key is how we authenticate
55 you and if have the permissions required to do a commit to a given repository
56</p>
57
58<hr />
59
60<h3>What version of Git is Gitorious running?</h3>
61<p>
62 <code>git version 1.5.3.7</code>
63</p>
64
65<% content_for :sidebar do -%>
66 <ul class="links">
67 <li><%= link_to "About", about_path(:anchor => "about") -%></li>
68 <li><%= link_to "Contact", about_path(:anchor => "contact") -%></li>
69 <li><%= link_to "FAQ", faq_path -%></li>
70 </ul>
71<% end -%>
toggle raw diff

config/routes.rb

 
6565
6666 map.dashboard "dashboard", :controller => "site", :action => "dashboard"
6767 map.about "about", :controller => "site", :action => "about"
68 map.faq "about/faq", :controller => "site", :action => "faq"
6869
6970 # Install the default route as the lowest priority.
7071 map.connect ':controller/:action/:id.:format'
toggle raw diff