From 2fe6e9927bb409464527d3a639843c62d120d84b Mon Sep 17 00:00:00 2001 From: Johannes Schleifenbaum Date: Sat, 8 Dec 2012 10:56:46 +0100 Subject: [PATCH 1/7] added about page --- .../gitlab_bootstrap/typography.scss | 6 ++ app/controllers/about_controller.rb | 13 ++++ app/helpers/application_helper.rb | 1 + app/views/about/index.html.haml | 78 +++++++++++++++++++ app/views/dashboard/_sidebar.html.haml | 1 + app/views/help/_help_pages.html.haml | 38 +++++++++ app/views/help/index.html.haml | 39 +--------- app/views/layouts/_head_panel.html.haml | 3 + app/views/layouts/application.html.haml | 4 +- config/gitlab.yml.example | 3 + config/initializers/1_settings.rb | 2 + config/routes.rb | 5 ++ features/dashboard/active_tab.feature | 6 +- .../steps/dashboard/dashboard_active_tab.rb | 4 + features/steps/shared/paths.rb | 4 + spec/routing/routing_spec.rb | 7 ++ 16 files changed, 171 insertions(+), 43 deletions(-) create mode 100644 app/controllers/about_controller.rb create mode 100644 app/views/about/index.html.haml create mode 100644 app/views/help/_help_pages.html.haml diff --git a/app/assets/stylesheets/gitlab_bootstrap/typography.scss b/app/assets/stylesheets/gitlab_bootstrap/typography.scss index e74a0de125b..2411ac0d9d1 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/typography.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/typography.scss @@ -26,6 +26,12 @@ pre { &.dark { background: #333; color: #f5f5f5; + a { + color: #E1E1E1; + &:hover { + color: #fff; + } + } } } diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb new file mode 100644 index 00000000000..8ef3ab78b9d --- /dev/null +++ b/app/controllers/about_controller.rb @@ -0,0 +1,13 @@ +class AboutController < ApplicationController + def index + + # check Gitolite version + gitolite_home = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}") + gitolite_version_file = "#{gitolite_home}/gitolite/src/VERSION" + @gitolite_version = if File.exists?(gitolite_version_file) && File.readable?(gitolite_version_file) + File.read(gitolite_version_file) + end + @gitolite_version ||= "unknown" + + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fe6fe94c9ac..6d8e418b5a9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -80,6 +80,7 @@ module ApplicationHelper { label: "My SSH Keys", url: keys_path }, { label: "My Dashboard", url: root_path }, { label: "Admin Section", url: admin_root_path }, + { label: "About GitLab", url: about_path }, ] help_nav = [ diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml new file mode 100644 index 00000000000..75dfafb81a6 --- /dev/null +++ b/app/views/about/index.html.haml @@ -0,0 +1,78 @@ +%p.lead You are using GitLab. GitLab is an open source code hosting solution built around Git. + + + +%h2 About this Installation + +%div.row + - unless Gitlab.config.gitlab.admin_email.empty? + %div.span3 + %p Admin E-Mail: + %pre.dark #{mail_to(Gitlab.config.gitlab.admin_email)} + %div.span3 + %p GitLab Version: + %pre.dark #{link_to "#{Gitlab::Version.squish}@#{Gitlab::Revision}", "https://github.com/gitlabhq/gitlabhq/commit/#{Gitlab::Revision}"} + %div.span3 + %p Gitolite Version: + %pre.dark #{@gitolite_version} + %div.span3 + %p Ruby Version: + %pre.dark #{RUBY_ENGINE}-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} + + + +%h2 Getting Help + +%div.row + - unless Gitlab.config.gitlab.support_email.empty? + %div.span3 + %p Contact Local Support: + %pre.dark #{mail_to(Gitlab.config.gitlab.support_email)} + %div.span3 + %p Use the Search in the top bar: + %pre.dark #{link_to "Toggle Search-bar", '#', :onclick => '$("#search").focus();'} + %div.span3 + %p Ask in Support Forum: + %pre.dark #{link_to "GitLab @ Google Groups", 'https://groups.google.com/forum/#!forum/gitlabhq'} + %div.span3 + %p Browse the known issues: + %pre.dark #{link_to "GitLab @ GitHub", 'https://github.com/gitlabhq/gitlabhq/issues'} + +%h4 Use the help pages: + +=render 'help/help_pages' + + + +%h2 Help us make GitLab more awesome + +#contribute.accordion + .accordion-group + .accordion-heading + %a.accordion-toggle{"data-parent" => "#contribute", "data-toggle" => "collapse", :href => "#contribute_content"} + Contribution Guide + #contribute_content.accordion-body.collapse + .accordion-inner + .file_content.wiki + = preserve do + = markdown File.read(Rails.root.join("CONTRIBUTING.md")) + + + +%h2 About GitLab + +%p Fast, secure and stable solution based on Rails & Gitolite. Free and open-source. Distributed under the MIT License. + +%div.row + %div.span3 + %p Visit the official Website: + %pre.dark #{link_to "gitlabhq.com", 'http://gitlabhq.com/'} + %div.span3 + %p Follow us on Twitter: + %pre.dark #{link_to "GitLab @ twitter", 'https://twitter.com/gitlabhq'} + %div.span3 + %p Visit the Support Forum: + %pre.dark #{link_to "GitLab @ Google Groups", 'https://groups.google.com/forum/#!forum/gitlabhq'} + %div.span3 + %p Browse the known issues: + %pre.dark #{link_to "GitLab @ GitHub", 'https://github.com/gitlabhq/gitlabhq'} \ No newline at end of file diff --git a/app/views/dashboard/_sidebar.html.haml b/app/views/dashboard/_sidebar.html.haml index 9830cdf4f6b..6256e1bfeb7 100644 --- a/app/views/dashboard/_sidebar.html.haml +++ b/app/views/dashboard/_sidebar.html.haml @@ -12,3 +12,4 @@ = link_to "Homepage", "http://gitlab.org" = link_to "Blog", "http://blog.gitlab.org" = link_to "@gitlabhq", "https://twitter.com/gitlabhq" + = link_to "About GitLab", about_path diff --git a/app/views/help/_help_pages.html.haml b/app/views/help/_help_pages.html.haml new file mode 100644 index 00000000000..1d81a31530b --- /dev/null +++ b/app/views/help/_help_pages.html.haml @@ -0,0 +1,38 @@ +.row + .span6 + .ui-box + .title + %h5 Help + %ul.well-list + %li + %span= link_to "Workflow", help_workflow_path + + %li + %span= link_to "Permissions", help_permissions_path + + %li + %span= link_to "Web Hooks", help_web_hooks_path + + %li + %span= link_to "API", help_api_path + + %li + %span= link_to "GitLab Markdown", help_markdown_path + + %li + %span= link_to "SSH keys", help_ssh_path + + .span6 + .ui-box + .title + %h5 Admin Guide + %ul.well-list + + %li + %span= link_to "GitLab Rake Tasks", help_raketasks_path + + %li + %span= link_to "System Hooks", help_system_hooks_path + + %li + %span= link_to "Public Area", help_public_area_path diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index cadf6c9d6e7..0386e993ff6 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -11,41 +11,4 @@ %br -.row - .span6 - .ui-box - .title - %h5 Help - %ul.well-list - %li - %span= link_to "Workflow", help_workflow_path - - %li - %span= link_to "Permissions", help_permissions_path - - %li - %span= link_to "Web Hooks", help_web_hooks_path - - %li - %span= link_to "API", help_api_path - - %li - %span= link_to "GitLab Markdown", help_markdown_path - - %li - %span= link_to "SSH keys", help_ssh_path - - .span6 - .ui-box - .title - %h5 Admin Guide - %ul.well-list - - %li - %span= link_to "GitLab Rake Tasks", help_raketasks_path - - %li - %span= link_to "System Hooks", help_system_hooks_path - - %li - %span= link_to "Public Area", help_public_area_path += render 'help_pages' \ No newline at end of file diff --git a/app/views/layouts/_head_panel.html.haml b/app/views/layouts/_head_panel.html.haml index f4b2228a41b..a28a8ce3dcf 100644 --- a/app/views/layouts/_head_panel.html.haml +++ b/app/views/layouts/_head_panel.html.haml @@ -19,6 +19,9 @@ %li = link_to profile_path, title: "Your Profile", class: 'has_bottom_tooltip', 'data-original-title' => 'Your profile' do %i.icon-user + %li + = link_to about_path, title: "About GitLab", class: 'has_bottom_tooltip', 'data-original-title' => 'About GitLab' do + %i.icon-question-sign %li.separator %li = render "layouts/search" diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 88da5c98c78..1b5adb8440d 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -18,7 +18,7 @@ %span.count= current_user.cared_merge_requests.opened.count = nav_link(path: 'search#show') do = link_to "Search", search_path - = nav_link(controller: :help) do - = link_to "Help", help_path + = nav_link(path: 'about#index') do + = link_to "About GitLab", about_path .content= yield diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index 26bd0696946..fb2a4eb660e 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -28,6 +28,9 @@ gitlab: ## Email settings # Email address used in the "From" field in mails sent by GitLab email_from: gitlab@localhost + # Will be displayed on the about page + admin_email: admin@localhost + support_email: support@localhost ## Project settings default_projects_limit: 10 diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 4e31b65fab0..37c11a05035 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -49,6 +49,8 @@ Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80 Settings.gitlab['relative_url_root'] ||= '' Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http" Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}" +Settings.gitlab['support_email'] ||= "" +Settings.gitlab['admin_email'] ||= "" Settings.gitlab['url'] ||= Settings.send(:build_gitlab_url) Settings.gitlab['user'] ||= 'gitlab' Settings.gitlab['signup_enabled'] ||= false diff --git a/config/routes.rb b/config/routes.rb index 446817356e8..44a818e0111 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -45,6 +45,11 @@ Gitlab::Application.routes.draw do root to: "projects#index" end + # + # About + # + get 'about' => 'about#index' + # # Admin Area # diff --git a/features/dashboard/active_tab.feature b/features/dashboard/active_tab.feature index 6715ea269c7..eb56dd954b9 100644 --- a/features/dashboard/active_tab.feature +++ b/features/dashboard/active_tab.feature @@ -22,7 +22,7 @@ Feature: Dashboard active tab Then the active main tab should be Search And no other main tabs should be active - Scenario: On Dashboard Help - Given I visit dashboard help page - Then the active main tab should be Help + Scenario: On Dashboard About GitLab + Given I visit dashboard about page + Then the active main tab should be About GitLab And no other main tabs should be active diff --git a/features/steps/dashboard/dashboard_active_tab.rb b/features/steps/dashboard/dashboard_active_tab.rb index 41ecc48c0d3..9aaf46183c5 100644 --- a/features/steps/dashboard/dashboard_active_tab.rb +++ b/features/steps/dashboard/dashboard_active_tab.rb @@ -22,4 +22,8 @@ class DashboardActiveTab < Spinach::FeatureSteps Then 'the active main tab should be Help' do ensure_active_main_tab('Help') end + + Then 'the active main tab should be About GitLab' do + ensure_active_main_tab('About GitLab') + end end diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index c046c4e63e6..5e78f2cc176 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -49,6 +49,10 @@ module SharedPaths visit help_path end + Given 'I visit dashboard about page' do + visit about_path + end + # ---------------------------------------- # Profile # ---------------------------------------- diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 57fd70e7497..e1b301f28d3 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -72,6 +72,13 @@ describe HelpController, "routing" do end end +# about GET /about(.:format) about#index +describe AboutController, "routing" do + it "to #index" do + get("/about").should route_to('about#index') + end +end + # errors_githost GET /errors/githost(.:format) errors#githost describe ErrorsController, "routing" do it "to #githost" do -- GitLab From 674ff388d63e69f5f0fb3accfd37ec87b9da9fd1 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Fri, 18 Jan 2013 20:00:20 +0100 Subject: [PATCH 2/7] Fix support email settings --- config/gitlab.yml.example | 3 +-- config/initializers/1_settings.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index fb2a4eb660e..aca9935ba5f 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -28,8 +28,7 @@ gitlab: ## Email settings # Email address used in the "From" field in mails sent by GitLab email_from: gitlab@localhost - # Will be displayed on the about page - admin_email: admin@localhost + # Email address of your support contanct (default: same as email_from) support_email: support@localhost ## Project settings diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 37c11a05035..a1afa5b22c4 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -49,8 +49,7 @@ Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80 Settings.gitlab['relative_url_root'] ||= '' Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http" Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}" -Settings.gitlab['support_email'] ||= "" -Settings.gitlab['admin_email'] ||= "" +Settings.gitlab['support_email'] ||= Settings.gitlab.email_from Settings.gitlab['url'] ||= Settings.send(:build_gitlab_url) Settings.gitlab['user'] ||= 'gitlab' Settings.gitlab['signup_enabled'] ||= false -- GitLab From 0a6b4eeaf42b2f2ff2264e9b9ef4356882a24244 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Fri, 18 Jan 2013 20:02:08 +0100 Subject: [PATCH 3/7] Remove GitLab promo form sidebars --- app/assets/stylesheets/common.scss | 7 ------- app/views/dashboard/_sidebar.html.haml | 6 ------ app/views/groups/show.html.haml | 6 ------ 3 files changed, 19 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index db077048b6c..5de76d7d28d 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -484,13 +484,6 @@ li.note { margin-right: 12px; } -.gitlab-promo { - a { - color: #aaa; - margin-right: 30px; - } -} - pre { &.clean { background: none; diff --git a/app/views/dashboard/_sidebar.html.haml b/app/views/dashboard/_sidebar.html.haml index 6256e1bfeb7..b00a9c8232f 100644 --- a/app/views/dashboard/_sidebar.html.haml +++ b/app/views/dashboard/_sidebar.html.haml @@ -7,9 +7,3 @@ = image_tag "rss_ui.png", title: "feed" %strong News Feed -%hr -.gitlab-promo - = link_to "Homepage", "http://gitlab.org" - = link_to "Blog", "http://blog.gitlab.org" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" - = link_to "About GitLab", about_path diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 84dd17c045d..914d778208a 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -19,11 +19,5 @@ = image_tag "rss_ui.png", title: "feed" %strong News Feed - %hr - .gitlab-promo - = link_to "Homepage", "http://gitlabhq.com" - = link_to "Blog", "http://blog.gitlabhq.com" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" - :javascript $(function(){ Pager.init(20, true); }); -- GitLab From 2d270fc9ebba6cc6e1845aaf9710eae1ed5730bc Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 19 Jan 2013 01:31:50 +0100 Subject: [PATCH 4/7] Redirect help#index to about#index --- app/controllers/help_controller.rb | 2 -- app/views/help/index.html.haml | 15 --------------- config/routes.rb | 2 +- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 app/views/help/index.html.haml diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index b22280d2fd2..4799488ae52 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -1,4 +1,2 @@ class HelpController < ApplicationController - def index - end end diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml deleted file mode 100644 index bf677df723a..00000000000 --- a/app/views/help/index.html.haml +++ /dev/null @@ -1,15 +0,0 @@ -%h3.page_title - GITLAB - .right - %span= Gitlab::Version - %small= Gitlab::Revision -%hr -%p.lead - Self Hosted Git Management - %br - Fast, secure and stable solution based on Ruby on Rails & Gitolite. - -%br - -= render 'help_pages' - diff --git a/config/routes.rb b/config/routes.rb index 22119a1c5b8..b31bd003033 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -26,7 +26,7 @@ Gitlab::Application.routes.draw do # # Help # - get 'help' => 'help#index' + get 'help' => 'about#index' get 'help/api' => 'help#api' get 'help/markdown' => 'help#markdown' get 'help/permissions' => 'help#permissions' -- GitLab From 5bdf33ef7548b10cc4c75d9791ba575d492a297f Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 19 Jan 2013 01:40:02 +0100 Subject: [PATCH 5/7] Add Gitlab::Gitolite.version --- lib/gitlab/backend/gitolite.rb | 13 +++++++++++++ lib/tasks/gitlab/check.rake | 5 +---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/gitlab/backend/gitolite.rb b/lib/gitlab/backend/gitolite.rb index 3b8a2090f73..d99dc56153a 100644 --- a/lib/gitlab/backend/gitolite.rb +++ b/lib/gitlab/backend/gitolite.rb @@ -51,6 +51,19 @@ module Gitlab end end + class << self + def version + return @gitolite_version if @gitolite_version + + gitolite_user_home = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}") + gitolite_version_file = "#{gitolite_user_home}/gitolite/src/VERSION" + @gitolite_version = if File.readable?(gitolite_version_file) + File.read(gitolite_version_file) + end + @gitolite_version ||= "unknown" + end + end + alias_method :create_repository, :update_repository end end diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index 826b78ec5b1..66ba31e80cc 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -859,10 +859,7 @@ namespace :gitlab do end def gitolite_version - gitolite_version_file = "#{gitolite_user_home}/gitolite/src/VERSION" - if File.readable?(gitolite_version_file) - File.read(gitolite_version_file) - end + Gitlab::Gitolite.version end def has_gitolite3? -- GitLab From 6dacedad6c5a5cc9904d68e490aa27ac94fcc63a Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 19 Jan 2013 01:34:34 +0100 Subject: [PATCH 6/7] Add about layout --- app/controllers/about_controller.rb | 14 ++++++-------- app/controllers/help_controller.rb | 1 + app/views/layouts/about.html.haml | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 app/views/layouts/about.html.haml diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 8ef3ab78b9d..f16e83a59f2 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -1,13 +1,11 @@ class AboutController < ApplicationController - def index - # check Gitolite version - gitolite_home = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}") - gitolite_version_file = "#{gitolite_home}/gitolite/src/VERSION" - @gitolite_version = if File.exists?(gitolite_version_file) && File.readable?(gitolite_version_file) - File.read(gitolite_version_file) - end - @gitolite_version ||= "unknown" + layout 'about' + def index + @contribution_guide = File.read(Rails.root.join("CONTRIBUTING.md")) + @gitlab_version = "#{Gitlab::Version.squish}@#{Gitlab::Revision}" + @gitolite_version = Gitlab::Gitolite.version + @ruby_version = "#{RUBY_ENGINE}-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" end end diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 4799488ae52..28596b428a2 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -1,2 +1,3 @@ class HelpController < ApplicationController + layout 'about' end diff --git a/app/views/layouts/about.html.haml b/app/views/layouts/about.html.haml new file mode 100644 index 00000000000..417074fdba8 --- /dev/null +++ b/app/views/layouts/about.html.haml @@ -0,0 +1,24 @@ +!!! 5 +%html{ lang: "en"} + = render "layouts/head", title: "About GitLab" + %body{class: "#{app_theme} application"} + = render "layouts/flash" + = render "layouts/head_panel", title: "About GitLab" + .container + %ul.main_menu + = nav_link(path: 'dashboard#index', html_options: {class: 'home'}) do + = link_to "Home", root_path, title: "Home" + = nav_link(path: 'dashboard#issues') do + = link_to dashboard_issues_path do + Issues + %span.count= current_user.assigned_issues.opened.count + = nav_link(path: 'dashboard#merge_requests') do + = link_to dashboard_merge_requests_path do + Merge Requests + %span.count= current_user.cared_merge_requests.opened.count + = nav_link(path: 'search#show') do + = link_to "Search", search_path + = nav_link(path: 'about#index') do + = link_to "About GitLab", about_path + + .content= yield -- GitLab From f90e7617a91a6e017c6e6f6060699bbe07f17ff4 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 19 Jan 2013 01:35:52 +0100 Subject: [PATCH 7/7] Redo the about#index page --- app/views/about/index.html.haml | 133 ++++++++++++++------------------ 1 file changed, 56 insertions(+), 77 deletions(-) diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index 75dfafb81a6..e221ef512d5 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -1,78 +1,57 @@ -%p.lead You are using GitLab. GitLab is an open source code hosting solution built around Git. +%section + %h2 You are using GitLab + %p + GitLab is a fast, secure and stable open source code hosting solution built on Ruby on Rails & Gitolite. + It's distributed under the MIT License. + + .row + .span4 + %strong GitLab version: + %pre= @gitlab_version + .span4 + %strong Gitolite version: + %pre= @gitolite_version + .span4 + %strong Ruby version: + %pre= @ruby_version + +%section + %h3 Getting Help + + =render 'help/help_pages' + + + +%section.row + .span12 + %h3 Help us make GitLab more awesome + + .span8 + .file_holder + .file_content.wiki + = preserve do + = markdown @contribution_guide + + .span4 + .ui-box + .title + %h5 Find us on the internet + %ul.well-list + %li + Visit our website + = link_to "gitlabhq.com", "http://gitlabhq.com/" + %li + Reach out to + = link_to "@gitlabhq", "https://twitter.com/gitlabhq" + on + %i.icon-twitter + Twitter + %li + Join the + = link_to "Support Forum", "https://groups.google.com/forum/#!forum/gitlabhq" + %li + Fork us on + = link_to "https://github.com/gitlabhq/gitlabhq" do + %i.icon-github + GitHub - - -%h2 About this Installation - -%div.row - - unless Gitlab.config.gitlab.admin_email.empty? - %div.span3 - %p Admin E-Mail: - %pre.dark #{mail_to(Gitlab.config.gitlab.admin_email)} - %div.span3 - %p GitLab Version: - %pre.dark #{link_to "#{Gitlab::Version.squish}@#{Gitlab::Revision}", "https://github.com/gitlabhq/gitlabhq/commit/#{Gitlab::Revision}"} - %div.span3 - %p Gitolite Version: - %pre.dark #{@gitolite_version} - %div.span3 - %p Ruby Version: - %pre.dark #{RUBY_ENGINE}-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} - - - -%h2 Getting Help - -%div.row - - unless Gitlab.config.gitlab.support_email.empty? - %div.span3 - %p Contact Local Support: - %pre.dark #{mail_to(Gitlab.config.gitlab.support_email)} - %div.span3 - %p Use the Search in the top bar: - %pre.dark #{link_to "Toggle Search-bar", '#', :onclick => '$("#search").focus();'} - %div.span3 - %p Ask in Support Forum: - %pre.dark #{link_to "GitLab @ Google Groups", 'https://groups.google.com/forum/#!forum/gitlabhq'} - %div.span3 - %p Browse the known issues: - %pre.dark #{link_to "GitLab @ GitHub", 'https://github.com/gitlabhq/gitlabhq/issues'} - -%h4 Use the help pages: - -=render 'help/help_pages' - - - -%h2 Help us make GitLab more awesome - -#contribute.accordion - .accordion-group - .accordion-heading - %a.accordion-toggle{"data-parent" => "#contribute", "data-toggle" => "collapse", :href => "#contribute_content"} - Contribution Guide - #contribute_content.accordion-body.collapse - .accordion-inner - .file_content.wiki - = preserve do - = markdown File.read(Rails.root.join("CONTRIBUTING.md")) - - - -%h2 About GitLab - -%p Fast, secure and stable solution based on Rails & Gitolite. Free and open-source. Distributed under the MIT License. - -%div.row - %div.span3 - %p Visit the official Website: - %pre.dark #{link_to "gitlabhq.com", 'http://gitlabhq.com/'} - %div.span3 - %p Follow us on Twitter: - %pre.dark #{link_to "GitLab @ twitter", 'https://twitter.com/gitlabhq'} - %div.span3 - %p Visit the Support Forum: - %pre.dark #{link_to "GitLab @ Google Groups", 'https://groups.google.com/forum/#!forum/gitlabhq'} - %div.span3 - %p Browse the known issues: - %pre.dark #{link_to "GitLab @ GitHub", 'https://github.com/gitlabhq/gitlabhq'} \ No newline at end of file -- GitLab