From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E75C31393E9 for ; Thu, 17 Apr 2014 16:41:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76EB0E0AA6; Thu, 17 Apr 2014 16:41:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7EB1E0AC7 for ; Thu, 17 Apr 2014 16:41:48 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 142E034035D for ; Thu, 17 Apr 2014 16:41:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 8C3B8180E8 for ; Thu, 17 Apr 2014 16:41:44 +0000 (UTC) From: "Alex Legler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alex Legler" Message-ID: <1397743531.d91d7be69ed627d7c5c9e733da0aad5732407967.a3li@gentoo> Subject: [gentoo-commits] proj/infra-status:master commit in: /, views/ X-VCS-Repository: proj/infra-status X-VCS-Files: infra-status.rb views/layout.erb X-VCS-Directories: / views/ X-VCS-Committer: a3li X-VCS-Committer-Name: Alex Legler X-VCS-Revision: d91d7be69ed627d7c5c9e733da0aad5732407967 X-VCS-Branch: master Date: Thu, 17 Apr 2014 16:41:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c678e207-98ef-4eb1-969f-9163365dabee X-Archives-Hash: 3fcc2d0fa243980906e9e8da4d705c00 commit: d91d7be69ed627d7c5c9e733da0aad5732407967 Author: Alex Legler a3li li> AuthorDate: Thu Apr 17 14:05:31 2014 +0000 Commit: Alex Legler gentoo org> CommitDate: Thu Apr 17 14:05:31 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=d91d7be6 Set when displaying a notice --- infra-status.rb | 1 + views/layout.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infra-status.rb b/infra-status.rb index 2bff57c..b332df6 100644 --- a/infra-status.rb +++ b/infra-status.rb @@ -35,6 +35,7 @@ get '/notice/:id' do '<h1>No such notice</h1><p>The notice you have requested does not exist or has been removed as it was resolved long ago.</p>' end else + @title = notice['title'] erb :notice, :locals => { :notice => notice } end end diff --git a/views/layout.erb b/views/layout.erb index be50e02..d43b914 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>Gentoo Infrastructure Status + <%= "#{h @title} - " if @title %>Gentoo Infrastructure Status