Skip to content

Commit

Permalink
Fixed display/css for rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Apr 2, 2009
1 parent 8f32475 commit 336e013
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
17 changes: 9 additions & 8 deletions views/doc.haml
Expand Up @@ -6,11 +6,12 @@
-['jquery', 'jquery.ui', 'jquery.metadata', 'jquery.form', 'base', 'gembox'].each do |jslib|
%script{'type' => 'text/javascript', 'src' => "/javascripts/#{jslib}.js"}
%body
#smallnav
.back_link=link_to_gem(@gem, :text => '&laquo Back to Gembox')
.viewing
Viewing RDoc for
=@gem.name
 
=@gem.version
%iframe#docframe{:width => '100%', :height => '100%', :src => "#{request.path_info}/index.html"}
#container
#smallnav
.back_link=link_to_gem(@gem, :text => '&laquo Back to Gembox')
.viewing
Viewing RDoc for
=@gem.name
 
=@gem.version
%iframe#docframe{:src => "#{request.path_info}/index.html"}
3 changes: 2 additions & 1 deletion views/gem.haml
Expand Up @@ -15,7 +15,8 @@
=link_to(@gem.homepage)
-if @gem.has_rdoc?
%p.url
=link_to("Open RDoc", "/gems/doc/#{@gem.name}/#{@gem.version}")
Docs:
=link_to("View Local RDoc", "/gems/doc/#{@gem.name}/#{@gem.version}")
-unless @gem.rubyforge_project.blank?
%p.url
Rubyforge:
Expand Down
17 changes: 17 additions & 0 deletions views/gembox.sass
Expand Up @@ -165,6 +165,23 @@ a img
.copyright
:font-size 12px

#smallnav
:background = !dark_red
:text-align center
:width auto
:padding 5px
a
:color #FFF
.back_link
:float left
.viewing
:color = !light_grey
#docframe
:border none
:padding none
:margin none
:width 100%
:height 95%
.clear
:clear both
:line-height 0px
Expand Down

0 comments on commit 336e013

Please sign in to comment.