gitlabhq/gitlabhq — pull request #1663 by tsigo (2012-10-09 19:58:04+00:00)
Title: Allow custom page title and logo

Two points of customization:

First, a user can override any of the app's CSS by editing `app/assets/stylesheets/overrides.scss`. The file was checked into Git and then ignored, so any customizations won't be wiped out by future updates upstream.

Second, I added two helper methods, `page_title` and `application_title` that can be customized with an initializer (below), which we can document in the Wiki for people who want to do that.

```ruby
module MyCustomApplicationHelper
def custom_application_title
content_tag(:h1, "Startup, Inc.")
end

def custom_page_title
title = "Startup, Inc."
title += " > #{@project.name}" if @project && @project.persisted?
title
end
end

Rails.application.config.after_initialize do
ActionView::Base.send(:include, MyCustomApplicationHelper)
end
```