From 1d405c3ffe7261ef4ef82ce59e130573e700a072 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 9 Jan 2013 21:16:29 +0800 Subject: [PATCH] Add "tag" icon to orbit bar --- app/helpers/application_helper.rb | 5 +++++ app/views/layouts/_orbit_bar.html.erb | 20 ++++++++++++++------ config/locales/ntu.en.yml | 15 +++++++++++++++ config/locales/ntu.zh_tw.yml | 15 +++++++++++++++ 4 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 config/locales/ntu.en.yml create mode 100644 config/locales/ntu.zh_tw.yml diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 252ab78c..5c6cca95 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -282,4 +282,9 @@ module ApplicationHelper end end + # NTU link + def get_link(site_number) + "http://#{request.host}:2#{site_number}00" + end + end diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb index 5d699288..08d95d54 100644 --- a/app/views/layouts/_orbit_bar.html.erb +++ b/app/views/layouts/_orbit_bar.html.erb @@ -13,13 +13,21 @@