| |   |
| 4 | 4 | before_filter :require_user_has_ssh_keys, :only => [:new, :create] |
| 5 | 5 | before_filter :find_project, :except => [:index, :category, :new, :create] |
| 6 | 6 | |
| 7 | | after_filter :increment_project_view if $application_mode == MODE_GITLAB |
| 7 | after_filter :increment_project_view |
| 8 | 8 | |
| 9 | 9 | def index |
| 10 | | case $application_mode |
| 11 | | when MODE_GITORIOUS |
| 12 | | @projects = Project.paginate(:all, :order => "projects.created_at desc", |
| 13 | | :page => params[:page], :include => [:tags]) |
| 14 | | @atom_auto_discovery_url = formatted_projects_path(:atom) |
| 15 | | respond_to do |format| |
| 16 | | format.html { @tags = Project.top_tags } |
| 17 | | format.xml { render :xml => @projects } |
| 18 | | format.atom { } |
| 19 | | end |
| 20 | | when MODE_GITLAB |
| 21 | | @title = "Projects" |
| 22 | | @public_projects = Project.find_all_active_public_projects(current_user) |
| 23 | | #flash[:error] = "No public projects exist." if @public_projects.size == 0 |
| 24 | | @member_projects = Project.find_all_active_member_projects(current_user) if logged_in? |
| 25 | | render :action => "ac_list" |
| 26 | | end |
| 10 | @title = "Projects" |
| 11 | @public_projects = Project.find_all_active_public_projects(current_user) |
| 12 | #flash[:error] = "No public projects exist." if @public_projects.size == 0 |
| 13 | @member_projects = Project.find_all_active_member_projects(current_user) if logged_in? |
| 14 | render :action => "ac_list" |
| 27 | 15 | end |
| 28 | 16 | |
| 29 | 17 | def category |
| … | … | |
| 30 | 30 | end |
| 31 | 31 | |
| 32 | 32 | def show |
| 33 | | case $application_mode |
| 34 | | when MODE_GITORIOUS |
| 35 | | @repositories = @project.repositories.find(:all) |
| 36 | | respond_to do |format| |
| 37 | | format.html |
| 38 | | format.xml { render :xml => @project } |
| 39 | | end |
| 40 | | when MODE_GITLAB |
| 41 | | @wiki = @project.wiki |
| 42 | | @title = @wiki.title |
| 43 | | @url_suffix = "" |
| 44 | | render :action => "ac_show" |
| 45 | | end |
| 33 | @wiki = @project.wiki |
| 34 | @title = @wiki.title |
| 35 | @url_suffix = "" |
| 36 | render :action => "ac_show" |
| 46 | 37 | end |
| 47 | 38 | |
| 48 | 39 | def new |
| toggle raw diff |
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -4,26 +4,14 @@ class ProjectsController < ApplicationController
before_filter :require_user_has_ssh_keys, :only => [:new, :create]
before_filter :find_project, :except => [:index, :category, :new, :create]
- after_filter :increment_project_view if $application_mode == MODE_GITLAB
+ after_filter :increment_project_view
def index
- case $application_mode
- when MODE_GITORIOUS
- @projects = Project.paginate(:all, :order => "projects.created_at desc",
- :page => params[:page], :include => [:tags])
- @atom_auto_discovery_url = formatted_projects_path(:atom)
- respond_to do |format|
- format.html { @tags = Project.top_tags }
- format.xml { render :xml => @projects }
- format.atom { }
- end
- when MODE_GITLAB
- @title = "Projects"
- @public_projects = Project.find_all_active_public_projects(current_user)
- #flash[:error] = "No public projects exist." if @public_projects.size == 0
- @member_projects = Project.find_all_active_member_projects(current_user) if logged_in?
- render :action => "ac_list"
- end
+ @title = "Projects"
+ @public_projects = Project.find_all_active_public_projects(current_user)
+ #flash[:error] = "No public projects exist." if @public_projects.size == 0
+ @member_projects = Project.find_all_active_member_projects(current_user) if logged_in?
+ render :action => "ac_list"
end
def category
@@ -42,19 +30,10 @@ class ProjectsController < ApplicationController
end
def show
- case $application_mode
- when MODE_GITORIOUS
- @repositories = @project.repositories.find(:all)
- respond_to do |format|
- format.html
- format.xml { render :xml => @project }
- end
- when MODE_GITLAB
- @wiki = @project.wiki
- @title = @wiki.title
- @url_suffix = ""
- render :action => "ac_show"
- end
+ @wiki = @project.wiki
+ @title = @wiki.title
+ @url_suffix = ""
+ render :action => "ac_show"
end
def new |
| |   |
| 7 | 7 | session :off, :only => [:writable_by] |
| 8 | 8 | |
| 9 | 9 | def index |
| 10 | | case $application_mode |
| 11 | | when MODE_GITLAB |
| 12 | | if params[:project_id] != nil |
| 13 | | @project = Project.find_by_slug(params[:project_id], current_user) |
| 14 | | if @project != nil |
| 15 | | @repositories = @project.repositories.find(:all) |
| 16 | | @title, @url_suffix = Project.tab_settings(PRJ_TAB_REPOS) |
| 17 | | render :action => "ac_index" |
| 18 | | else |
| 19 | | flash[:error] = "Project not found." |
| 20 | | redirect_to projects_path |
| 21 | | end |
| 10 | if params[:project_id] != nil |
| 11 | @project = Project.find_by_slug(params[:project_id], current_user) |
| 12 | if @project != nil |
| 13 | @repositories = @project.repositories.find(:all) |
| 14 | @title, @url_suffix = Project.tab_settings(PRJ_TAB_REPOS) |
| 15 | render :action => "ac_index" |
| 22 | 16 | else |
| 23 | | flash[:error] = "No project specified." |
| 17 | flash[:error] = "Project not found." |
| 24 | 18 | redirect_to projects_path |
| 25 | 19 | end |
| 26 | | when MODE_GITORIOUS |
| 27 | | redirect_to(project_path(@project)) |
| 20 | else |
| 21 | flash[:error] = "No project specified." |
| 22 | redirect_to projects_path |
| 28 | 23 | end |
| 29 | 24 | end |
| 30 | 25 | |
| … | … | |
| 32 | 32 | else |
| 33 | 33 | @commits = [] |
| 34 | 34 | end |
| 35 | | case $application_mode |
| 36 | | when MODE_GITORIOUS |
| 37 | | @atom_auto_discovery_url = formatted_project_repository_path(@project, @repository, :atom) |
| 38 | | respond_to do |format| |
| 39 | | format.html |
| 40 | | format.xml { render :xml => @repository } |
| 41 | | format.atom { render :template => "logs/feed.atom.builder" } |
| 42 | | end |
| 43 | | when MODE_GITLAB |
| 44 | | #PRJ_TAB_REPOS |
| 45 | | @title = "Repo: ‘" << @repository.name << "’" |
| 46 | | render :action => "ac_show" |
| 47 | | end |
| 35 | @title = "Repo: ‘" << @repository.name << "’" |
| 36 | render :action => "ac_show" |
| 48 | 37 | end |
| 49 | 38 | |
| 50 | 39 | # note the #new+#create actions are members in the routes, hence they require |
| toggle raw diff |
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -7,24 +7,19 @@ class RepositoriesController < ApplicationController
session :off, :only => [:writable_by]
def index
- case $application_mode
- when MODE_GITLAB
- if params[:project_id] != nil
- @project = Project.find_by_slug(params[:project_id], current_user)
- if @project != nil
- @repositories = @project.repositories.find(:all)
- @title, @url_suffix = Project.tab_settings(PRJ_TAB_REPOS)
- render :action => "ac_index"
- else
- flash[:error] = "Project not found."
- redirect_to projects_path
- end
+ if params[:project_id] != nil
+ @project = Project.find_by_slug(params[:project_id], current_user)
+ if @project != nil
+ @repositories = @project.repositories.find(:all)
+ @title, @url_suffix = Project.tab_settings(PRJ_TAB_REPOS)
+ render :action => "ac_index"
else
- flash[:error] = "No project specified."
+ flash[:error] = "Project not found."
redirect_to projects_path
end
- when MODE_GITORIOUS
- redirect_to(project_path(@project))
+ else
+ flash[:error] = "No project specified."
+ redirect_to projects_path
end
end
@@ -37,19 +32,8 @@ class RepositoriesController < ApplicationController
else
@commits = []
end
- case $application_mode
- when MODE_GITORIOUS
- @atom_auto_discovery_url = formatted_project_repository_path(@project, @repository, :atom)
- respond_to do |format|
- format.html
- format.xml { render :xml => @repository }
- format.atom { render :template => "logs/feed.atom.builder" }
- end
- when MODE_GITLAB
- #PRJ_TAB_REPOS
- @title = "Repo: ‘" << @repository.name << "’"
- render :action => "ac_show"
- end
+ @title = "Repo: ‘" << @repository.name << "’"
+ render :action => "ac_show"
end
# note the #new+#create actions are members in the routes, hence they require |
| |   |
| 1 | | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | | <html lang="en"> |
| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | |
| 3 | <% if request.env['HTTP_HOST'] != "88.97.241.226" %> |
| 4 | <html> |
| 4 | 5 | <head> |
| 5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 | | <title><%= @page_title ? @page_title + " - " : "" -%>Gitorious</title> |
| 7 | | <meta name="author" content="Johan Sørensen"> |
| 8 | | <%= stylesheet_link_tag "base" -%> |
| 9 | | <%= syntax_themes_css -%> |
| 10 | | <%= javascript_include_tag :defaults, :cache => true -%> |
| 11 | | <% if @atom_auto_discovery_url -%> |
| 12 | | <%= auto_discovery_link_tag(:atom, @atom_auto_discovery_url) -%> |
| 13 | | <% end -%> |
| 14 | | <%= GitoriousConfig["extra_html_head_data"] -%> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
| 7 | <link rel="icon" href="/favicon.ico" type="image/ico"> |
| 8 | <link rel="shortcut icon" href="/favicon.ico"> |
| 9 | <link rel='alternate' type='application/rss+xml' title='RSS Feed' href='/rss.xml'/> |
| 10 | <title><%= yield(:title) %> - <%= SITENAME %></title> |
| 11 | <%= stylesheet_link_tag 'gitlab' %> |
| 15 | 12 | </head> |
| 16 | 13 | |
| 17 | | <body id="<%= controller.controller_name -%>"> |
| 14 | <body> |
| 15 | <div id='page'> |
| 16 | |
| 18 | 17 | <% unless GitoriousConfig["system_message"].blank? -%> |
| 19 | 18 | <div id="system_message"> |
| 20 | 19 | <p><strong>System notice:</strong> <%= GitoriousConfig["system_message"] -%></p> |
| 21 | 20 | </div> |
| 22 | 21 | <% end -%> |
| 23 | | <div id="header"> |
| 24 | | <h1 id="logo"> |
| 25 | | <%= link_to image_tag("logo-white.png"), root_path -%> |
| 26 | | <!-- <h1><%= link_to "Gitorious", root_path -%></h1> --> |
| 27 | | </h1> |
| 28 | | <ul id="menu"> |
| 29 | | <% unless logged_in? -%> |
| 30 | | <li><%= link_to "Home", root_path -%></li> |
| 31 | | <% end -%> |
| 32 | | <% if logged_in? -%> |
| 33 | | <li><%= link_to "Dashboard", dashboard_path -%></li> |
| 34 | | <% end -%> |
| 35 | | <li><%= link_to "Projects", projects_path -%></li> |
| 36 | | <li><%= link_to "Search", search_path -%></li> |
| 37 | | <% if logged_in? -%> |
| 38 | | <li><%= link_to "FAQ", faq_path -%></li> |
| 39 | | <% else -%> |
| 40 | | <li><%= link_to "About", about_path -%></li> |
| 41 | | <% end -%> |
| 42 | | <%- if logged_in? -%> |
| 43 | | <li class="secondary">( <%= link_to "My account", account_path -%></li> |
| 44 | | <li class="secondary"><%= link_to "Logout", logout_path -%> )</li> |
| 45 | | <%- else -%> |
| 46 | | <li class="secondary"><%= link_to "Register", new_user_path -%></li> |
| 47 | | <li class="secondary"><%= link_to "Login", login_path -%></li> |
| 48 | | <%- end -%> |
| 49 | | </ul> |
| 50 | | <ul id="submenu"> |
| 51 | | <% if @project -%> |
| 52 | | <li class="<%= selected_if_current_page(project_path(@project)) -%>"> |
| 53 | | <%= link_to h(@project.title), project_path(@project) -%> |
| 54 | | </li> |
| 55 | | <% if @repository -%> |
| 56 | | <!-- <li class="menu_title"><%= h(@repository.name) -%>:</li> --> |
| 57 | | <li class="<%= selected_if_current_page(project_repository_path(@project, @repository)) -%>"> |
| 58 | | <%= link_to "#{h(@repository.name)} repository", project_repository_path(@project, @repository) -%> |
| 59 | | </li> |
| 60 | | <li class="<%= selected_if_current_page(project_repository_logs_path(@project, @repository)) -%>"> |
| 61 | | <%= link_to "Commits", project_repository_logs_path(@project, @repository) -%> |
| 62 | | </li> |
| 63 | | <% if @repository.head_candidate -%> |
| 64 | | <li class="<%= selected_if_current_page(project_repository_tree_path(@project, @repository, @repository.head_candidate.name)) -%>"> |
| 65 | | <%= link_to "Source Tree", project_repository_tree_path(@project, @repository, @repository.head_candidate.name) -%> |
| 66 | | </li> |
| 67 | | <% end -%> |
| 68 | | <% end -%> |
| 69 | | <% end -%> |
| 70 | | <%= yield :submenu -%> |
| 71 | | </ul> |
| 22 | |
| 23 | <div id="system_message"> |
| 24 | <p><strong>Notice:</strong> **BROKEN DURING REFACTOR** This site is unstable work-in-progress, source for it is available on <a href='http://gitorious.org/projects/gitlab/'>gitorious.org</a>. Contact <a href='mailto:mtkd@prj2.com'>mtkd@prj2.com</a></p> |
| 72 | 25 | </div> |
| 73 | | <div id="container"> |
| 74 | | <% unless @content_for_sidebar.blank? -%> |
| 75 | | <div id="main"> |
| 76 | | <% end -%> |
| 77 | | <div id="content"> |
| 78 | | <%= flashes %> |
| 79 | | <%= yield -%> |
| 80 | | </div> |
| 81 | | <% unless @content_for_sidebar.blank? -%> |
| 82 | | </div> |
| 83 | | <div id="sidebar"> |
| 84 | | <%= yield :sidebar -%> |
| 85 | | </div> |
| 86 | | <div class="clear"></div> |
| 87 | | <% end -%> |
| 88 | | <div id="footer"> |
| 89 | | <ul> |
| 90 | | <li><%= link_to "Home", root_path -%> | </li> |
| 91 | | <li><%= link_to "About", about_path -%> | </li> |
| 92 | | <li><%= link_to "FAQ", faq_path -%> | </li> |
| 93 | | <li><%= link_to "Discussion group", "http://groups.google.com/group/gitorious" -%></li> |
| 26 | |
| 27 | <div id='header'> |
| 28 | <div id='menu'> |
| 29 | <ul class='item'> |
| 30 | <li><%= link_to("Home", root_path) %></li> |
| 31 | <li><%= link_to("Projects", projects_path) %></li> |
| 32 | <li><%= link_to("Archive", articles_path) %></li> |
| 33 | <li><%= link_to("Forum", forums_path) %></li> |
| 34 | <li><%= link_to("Wiki", wikis_path) %></li> |
| 35 | <li><%= link_to("Search", search_path) %></li> |
| 36 | <li><%= link_to("About", about_path) %></li> |
| 94 | 37 | </ul> |
| 95 | 38 | </div> |
| 96 | 39 | </div> |
| 40 | |
| 41 | <% if flash[:error] %><div id='flash_error'><%= flash[:error] %></div><% end %> |
| 42 | <% if flash[:notice] %><div id='flash_notice'><%= flash[:notice] %></div><% end %> |
| 43 | |
| 44 | <%= yield %> |
| 45 | |
| 46 | <div id='footer'> |
| 47 | <div class='text'> |
| 48 | All content and applications are <a href='/wikis/gnu-agpl-license'>GNU AGPL</a> unless stated otherwise. This site is built using <a href='/projects/<%= APPNAME.downcase %>'><%= APPNAME %></a> for Rails. |
| 49 | </div> |
| 50 | </div> |
| 51 | |
| 52 | </div> |
| 97 | 53 | </body> |
| 54 | |
| 55 | </html> |
| 56 | <% else %> |
| 57 | |
| 58 | <html> |
| 59 | No site |
| 98 | 60 | </html> |
| 61 | |
| 62 | <% end %> |
| toggle raw diff |
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,98 +1,62 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+
+<% if request.env['HTTP_HOST'] != "88.97.241.226" %>
+<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title><%= @page_title ? @page_title + " - " : "" -%>Gitorious</title>
- <meta name="author" content="Johan Sørensen">
- <%= stylesheet_link_tag "base" -%>
- <%= syntax_themes_css -%>
- <%= javascript_include_tag :defaults, :cache => true -%>
- <% if @atom_auto_discovery_url -%>
- <%= auto_discovery_link_tag(:atom, @atom_auto_discovery_url) -%>
- <% end -%>
- <%= GitoriousConfig["extra_html_head_data"] -%>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="icon" href="/favicon.ico" type="image/ico">
+<link rel="shortcut icon" href="/favicon.ico">
+<link rel='alternate' type='application/rss+xml' title='RSS Feed' href='/rss.xml'/>
+<title><%= yield(:title) %> - <%= SITENAME %></title>
+<%= stylesheet_link_tag 'gitlab' %>
</head>
-<body id="<%= controller.controller_name -%>">
+<body>
+<div id='page'>
+
<% unless GitoriousConfig["system_message"].blank? -%>
<div id="system_message">
<p><strong>System notice:</strong> <%= GitoriousConfig["system_message"] -%></p>
</div>
<% end -%>
- <div id="header">
- <h1 id="logo">
- <%= link_to image_tag("logo-white.png"), root_path -%>
- <!-- <h1><%= link_to "Gitorious", root_path -%></h1> -->
- </h1>
- <ul id="menu">
- <% unless logged_in? -%>
- <li><%= link_to "Home", root_path -%></li>
- <% end -%>
- <% if logged_in? -%>
- <li><%= link_to "Dashboard", dashboard_path -%></li>
- <% end -%>
- <li><%= link_to "Projects", projects_path -%></li>
- <li><%= link_to "Search", search_path -%></li>
- <% if logged_in? -%>
- <li><%= link_to "FAQ", faq_path -%></li>
- <% else -%>
- <li><%= link_to "About", about_path -%></li>
- <% end -%>
- <%- if logged_in? -%>
- <li class="secondary">( <%= link_to "My account", account_path -%></li>
- <li class="secondary"><%= link_to "Logout", logout_path -%> )</li>
- <%- else -%>
- <li class="secondary"><%= link_to "Register", new_user_path -%></li>
- <li class="secondary"><%= link_to "Login", login_path -%></li>
- <%- end -%>
- </ul>
- <ul id="submenu">
- <% if @project -%>
- <li class="<%= selected_if_current_page(project_path(@project)) -%>">
- <%= link_to h(@project.title), project_path(@project) -%>
- </li>
- <% if @repository -%>
- <!-- <li class="menu_title"><%= h(@repository.name) -%>:</li> -->
- <li class="<%= selected_if_current_page(project_repository_path(@project, @repository)) -%>">
- <%= link_to "#{h(@repository.name)} repository", project_repository_path(@project, @repository) -%>
- </li>
- <li class="<%= selected_if_current_page(project_repository_logs_path(@project, @repository)) -%>">
- <%= link_to "Commits", project_repository_logs_path(@project, @repository) -%>
- </li>
- <% if @repository.head_candidate -%>
- <li class="<%= selected_if_current_page(project_repository_tree_path(@project, @repository, @repository.head_candidate.name)) -%>">
- <%= link_to "Source Tree", project_repository_tree_path(@project, @repository, @repository.head_candidate.name) -%>
- </li>
- <% end -%>
- <% end -%>
- <% end -%>
- <%= yield :submenu -%>
- </ul>
+
+ <div id="system_message">
+ <p><strong>Notice:</strong> **BROKEN DURING REFACTOR** This site is unstable work-in-progress, source for it is available on <a href='http://gitorious.org/projects/gitlab/'>gitorious.org</a>. Contact <a href='mailto:mtkd@prj2.com'>mtkd@prj2.com</a></p>
</div>
- <div id="container">
- <% unless @content_for_sidebar.blank? -%>
- <div id="main">
- <% end -%>
- <div id="content">
- <%= flashes %>
- <%= yield -%>
- </div>
- <% unless @content_for_sidebar.blank? -%>
- </div>
- <div id="sidebar">
- <%= yield :sidebar -%>
- </div>
- <div class="clear"></div>
- <% end -%>
- <div id="footer">
- <ul>
- <li><%= link_to "Home", root_path -%> | </li>
- <li><%= link_to "About", about_path -%> | </li>
- <li><%= link_to "FAQ", faq_path -%> | </li>
- <li><%= link_to "Discussion group", "http://groups.google.com/group/gitorious" -%></li>
+
+ <div id='header'>
+ <div id='menu'>
+ <ul class='item'>
+ <li><%= link_to("Home", root_path) %></li>
+ <li><%= link_to("Projects", projects_path) %></li>
+ <li><%= link_to("Archive", articles_path) %></li>
+ <li><%= link_to("Forum", forums_path) %></li>
+ <li><%= link_to("Wiki", wikis_path) %></li>
+ <li><%= link_to("Search", search_path) %></li>
+ <li><%= link_to("About", about_path) %></li>
</ul>
</div>
</div>
+
+ <% if flash[:error] %><div id='flash_error'><%= flash[:error] %></div><% end %>
+ <% if flash[:notice] %><div id='flash_notice'><%= flash[:notice] %></div><% end %>
+
+ <%= yield %>
+
+ <div id='footer'>
+ <div class='text'>
+ All content and applications are <a href='/wikis/gnu-agpl-license'>GNU AGPL</a> unless stated otherwise. This site is built using <a href='/projects/<%= APPNAME.downcase %>'><%= APPNAME %></a> for Rails.
+ </div>
+ </div>
+
+</div>
</body>
+
+</html>
+<% else %>
+
+<html>
+No site
</html>
+
+<% end %>
\ No newline at end of file |
| |   |
| 0 | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 1 | | |
| 2 | | <% if request.env['HTTP_HOST'] != "88.97.241.226" %> |
| 3 | | <html> |
| 4 | | <head> |
| 5 | | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
| 6 | | <link rel="icon" href="/favicon.ico" type="image/ico"> |
| 7 | | <link rel="shortcut icon" href="/favicon.ico"> |
| 8 | | <link rel='alternate' type='application/rss+xml' title='RSS Feed' href='/rss.xml'/> |
| 9 | | <title><%= yield(:title) %> - <%= SITENAME %></title> |
| 10 | | <%= stylesheet_link_tag 'gitlab' %> |
| 11 | | </head> |
| 12 | | |
| 13 | | <body> |
| 14 | | <div id='page'> |
| 15 | | |
| 16 | | <% unless GitoriousConfig["system_message"].blank? -%> |
| 17 | | <div id="system_message"> |
| 18 | | <p><strong>System notice:</strong> <%= GitoriousConfig["system_message"] -%></p> |
| 19 | | </div> |
| 20 | | <% end -%> |
| 21 | | |
| 22 | | <div id="system_message"> |
| 23 | | <p><strong>Notice:</strong> **BROKEN DURING REFACTOR** This site is unstable work-in-progress, source for it is available on <a href='http://gitorious.org/projects/gitlab/'>gitorious.org</a>. Contact <a href='mailto:mtkd@prj2.com'>mtkd@prj2.com</a></p> |
| 24 | | </div> |
| 25 | | |
| 26 | | <div id='header'> |
| 27 | | <div id='menu'> |
| 28 | | <ul class='item'> |
| 29 | | <li><%= link_to("Home", root_path) %></li> |
| 30 | | <li><%= link_to("Projects", projects_path) %></li> |
| 31 | | <li><%= link_to("Archive", articles_path) %></li> |
| 32 | | <li><%= link_to("Forum", forums_path) %></li> |
| 33 | | <li><%= link_to("Wiki", wikis_path) %></li> |
| 34 | | <li><%= link_to("Search", search_path) %></li> |
| 35 | | <li><%= link_to("About", about_path) %></li> |
| 36 | | </ul> |
| 37 | | </div> |
| 38 | | </div> |
| 39 | | |
| 40 | | <% if flash[:error] %><div id='flash_error'><%= flash[:error] %></div><% end %> |
| 41 | | <% if flash[:notice] %><div id='flash_notice'><%= flash[:notice] %></div><% end %> |
| 42 | | |
| 43 | | <%= yield %> |
| 44 | | |
| 45 | | <div id='footer'> |
| 46 | | <div class='text'> |
| 47 | | All content and applications are <a href='/wikis/gnu-agpl-license'>GNU AGPL</a> unless stated otherwise. This site is built using <a href='/projects/<%= APPNAME.downcase %>'><%= APPNAME %></a> for Rails. |
| 48 | | </div> |
| 49 | | </div> |
| 50 | | |
| 51 | | </div> |
| 52 | | </body> |
| 53 | | |
| 54 | | </html> |
| 55 | | <% else %> |
| 56 | | |
| 57 | | <html> |
| 58 | |