Permalink
Browse files

Configurable title

  • Loading branch information...
1 parent 53bb582 commit f26b96a67a5b6afb2e1918fd57817635dbab0ac8 @dce dce committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/views/layouts/stat_board/application.html.erb
  2. +1 −1 lib/stat_board.rb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>StatBoard</title>
+ <title><%= StatBoard.title || "StatBoard" %></title>
<%= stylesheet_link_tag "stat_board/application", :media => "all" %>
<%= stylesheet_link_tag "stat_board/bootstrap", :media => "all" %>
<%= javascript_include_tag "stat_board/application" %>
@@ -11,7 +11,7 @@
<div class="container">
<div class="page-header">
- <h1>StatBoard</h1>
+ <h1><%= StatBoard.title || "StatBoard" %></h1>
</div>
<%= yield %>
View
@@ -1,5 +1,5 @@
require "stat_board/engine"
module StatBoard
- mattr_accessor :models
+ mattr_accessor :models, :title
end

0 comments on commit f26b96a

Please sign in to comment.