public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alex Legler" <a3li@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/infra-status:master commit in: /, views/
Date: Thu, 17 Apr 2014 16:41:44 +0000 (UTC)	[thread overview]
Message-ID: <1397743531.d91d7be69ed627d7c5c9e733da0aad5732407967.a3li@gentoo> (raw)

commit:     d91d7be69ed627d7c5c9e733da0aad5732407967
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Thu Apr 17 14:05:31 2014 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> 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 <title> 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</title>
+  <title><%= "#{h @title} - " if @title %>Gentoo Infrastructure Status</title>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <meta name="description" content="">


             reply	other threads:[~2014-04-17 16:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 16:41 Alex Legler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-01-18 12:10 [gentoo-commits] proj/infra-status:master commit in: /, views/ Alex Legler
2014-01-16 16:43 ` Alex Legler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1397743531.d91d7be69ed627d7c5c9e733da0aad5732407967.a3li@gentoo \
    --to=a3li@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox