Skip to content

Commit 7028e09

Browse files
committed
Remove /display check from notices cache and bump version
1 parent d601d4c commit 7028e09

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/views/clock/_notices.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- if @n.any? and request.fullpath == "/display"
1+
- if @n.any?
22
%footer#notices
33
%ul
44
- @n.each do |n|

app/views/clock/index.haml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
%p#date= Time.now.strftime("%A, %B %e, %Y")
5252
%p#time= Time.now.strftime("%l:%M:%S")
5353

54-
= @notices
54+
- if request.fullpath == "/display"
55+
= @notices
5556

5657
= @schedule
5758

config/boot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PADRINO_ENV = ENV['PADRINO_ENV'] ||= ENV['RACK_ENV'] ||= 'development' unless defined?(PADRINO_ENV)
22
PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)
33

4-
CLOCK_VERSION = '0.4.10'
4+
CLOCK_VERSION = '0.4.11'
55

66
require 'rubygems' unless defined?(Gem)
77
require 'bundler/setup'

0 commit comments

Comments
 (0)