Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/rdoc/generator/template/darkfish/class.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@
<%- if (call_seq = method.call_seq) then -%>
<%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
<div class="method-heading">
<%- if i == 0 and method.token_stream then -%>
<span class="method-click-advice">Toggle source</span>
<%- end -%>
<span class="method-callseq">
<%= h(call_seq.strip.
gsub( /^\w+\./m, '')).
gsub(/(.*)[-=]&gt;/, '\1&rarr;') %>
</span>
<%- if i == 0 and method.token_stream then -%>
<span class="method-click-advice">click to toggle source</span>
<%- end -%>
</div>
<%- end -%>
<%- elsif method.has_call_seq? then -%>
Expand All @@ -119,11 +119,11 @@
</div>
<%- else -%>
<div class="method-heading">
<span class="method-name"><%= h method.name %></span><span
class="method-args"><%= h method.param_seq %></span>
<%- if method.token_stream then -%>
<span class="method-click-advice">click to toggle source</span>
<span class="method-click-advice">Toggle source</span>
<%- end -%>
<span class="method-name"><%= h method.name %></span><span
class="method-args"><%= h method.param_seq %></span>
</div>
<%- end -%>
</div>
Expand Down
16 changes: 5 additions & 11 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,12 @@ main .method-heading :visited {
color: inherit;
}
main .method-click-advice {
position: absolute;
top: 2px;
right: 5px;
font-size: 12px;
color: #9b9877;
visibility: hidden;
padding-right: 20px;
line-height: 20px;
background: url(../images/zoom.png) no-repeat right top;
}
main .method-header:hover .method-click-advice {
visibility: visible;
display: inline-block;
float: right;
font-size: 12px;
font-weight: normal;
line-height: 25px;
}

main .method-alias .method-heading {
Expand Down
Binary file removed lib/rdoc/generator/template/darkfish/images/zoom.png
Binary file not shown.
1 change: 0 additions & 1 deletion rdoc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
"lib/rdoc/generator/template/darkfish/images/transparent.png",
"lib/rdoc/generator/template/darkfish/images/wrench.png",
"lib/rdoc/generator/template/darkfish/images/wrench_orange.png",
"lib/rdoc/generator/template/darkfish/images/zoom.png",
"lib/rdoc/generator/template/darkfish/index.rhtml",
"lib/rdoc/generator/template/darkfish/js/darkfish.js",
"lib/rdoc/generator/template/darkfish/js/search.js",
Expand Down