From db5d000757cb14d8bb6fddb622f24af0239db7c5 Mon Sep 17 00:00:00 2001 From: Daniel Vincent Grippi Date: Sat, 11 Sep 2010 12:09:55 -0700 Subject: [PATCH] made a sticky request link on the bottom of every page --- README | 13 ------------- app/views/layouts/application.html.haml | 3 +++ public/stylesheets/application.css | 10 ++++++++++ public/stylesheets/sass/application.sass | 14 ++++++++++++++ 4 files changed, 27 insertions(+), 13 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index 4faa7886e..000000000 --- a/README +++ /dev/null @@ -1,13 +0,0 @@ -Some things that need doing: - -Rename relations: - post.person needs to be post.owner - group.people might want to be group.members - person.owner should probably be person.user - -Refactor receive: - user.receive is a little horrifying right now. - Maybe make a model.import or model.perform function which can be called on all the classes. - Definitely move the varied signature verification methods into a unified object.signature_valid? - or signatures_valid? - diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index c3396aab9..de54600d3 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -85,3 +85,6 @@ .span-19.prepend-5.last = render "posts/debug" + #notification_badge.requests + = link_to "requests (#{@request_count})", requests_path + diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0918b614e..60f00d037 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -628,3 +628,13 @@ h1.big_text { .requests .person .grey { font-style: italic; color: #666666; } + +#notification_badge { + position: fixed; + bottom: 0; + margin-left: 854px; } + #notification_badge a { + background-color: #eeeeee; + border: 1px solid #cccccc; + border-bottom: none; + padding: 3px 10px; } diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index b851028ae..5cf70a6bd 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -825,3 +825,17 @@ h1.big_text :style italic :color #666 +#notification_badge + :position fixed + :bottom 0 + :margin + :left 854px + + a + :background + :color #eee + + :border 1px solid #ccc + :bottom none + + :padding 3px 10px