Skip to content

Commit

Permalink
Add "Who's using Redis".
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski committed Dec 13, 2010
1 parent 06f5452 commit b4fdd87
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def gravatar_hash(email)
end

on get, path("topics"), segment do |_, _, name|
@css = [:topics, name]
@body, @title = topic("#{documentation_path}/topics/#{name}.md")
@related_commands = related_commands_for(name)

Expand Down
2 changes: 2 additions & 0 deletions views/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ low level.
* [Internals](/topics/internals): learn details about how Redis is
implemented under the hood.

* [Who's using it?](/topics/whos-using-redis)

Tutorials
---

Expand Down
2 changes: 1 addition & 1 deletion views/layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%title
= [@title, "Redis"].compact.join("")

%body
%body(class="#{@css.join(" ") if @css}")
%header
.container
%a(href="/")
Expand Down
18 changes: 18 additions & 0 deletions views/topics.sass
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,21 @@ article
&:first-child
font-size: 22px
line-height: 22px

body.topics
&.whos-using-redis
ul:first-of-type
text-align: center
list-style-type: none
margin: 15px

li
margin: 10px 10px
padding: 0
display: inline-block
vertical-align: middle

img
vertical-align: middle
max-width: 200px
max-height: 76px

0 comments on commit b4fdd87

Please sign in to comment.