Skip to content
Open
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
3 changes: 2 additions & 1 deletion lib/rdoc/generator/template/rails/_context.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,15 @@
<% unless attributes.empty? %>
<!-- Section attributes -->
<h2 class="sectiontitle">Attributes</h2>
<table border='0' cellpadding='5'>
<table border='0' cellpadding='5' width="100%">
<% attributes.each do |attrib| %>
<tr valign='top'>
<td class='attr-rw'>
[<%= attrib.rw %>]
</td>
<td class='attr-name'><%= h attrib.name %></td>
<td class='attr-desc'><%= attrib.description.strip %></td>
<td class='attr-link'><a href="<%= "#{rel_prefix}/#{context.path}##{attrib.aref}"%>" name="<%= attrib.aref %>" class="permalink">Link</a></td>
</tr>
<% end %>
</table>
Expand Down
6 changes: 5 additions & 1 deletion lib/rdoc/generator/template/rails/resources/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ pre
.attr-desc {
}

.attr-link {
position: relative;
}

tt {
font-size: 1.15em;
}
Expand Down Expand Up @@ -342,7 +346,7 @@ tt {
position: relative;
}

.method a.permalink {
.method a.permalink, .attr-link a.permalink {
position: absolute;
font-size: 0.9em;
right: 0;
Expand Down