templates/default/method_details/html/method_signature.erb in yard-0.7.5 vs templates/default/method_details/html/method_signature.erb in yard-0.8.0

- old
+ new

@@ -1,6 +1,6 @@ -<p class="signature <%= 'first' if @index == 0 %>" id="<%= anchor_for(object) %>"> +<h3 class="signature <%= 'first' if @index == 0 %>" id="<%= anchor_for(object) %>"> <% if object.tags(:overload).size == 1 %> <%= signature(object.tag(:overload), false) %> <% elsif object.tags(:overload).size > 1 %> <% object.tags(:overload).each do |overload| %> <span class="overload"><%= signature(overload, false) %></span> @@ -9,10 +9,17 @@ <%= signature(object, false) %> <% end %> <% if object.aliases.size > 0 %> <span class="aliases">Also known as: - <span class="names"><%= object.aliases.map {|o| + <span class="names"><%= object.aliases.map {|o| "<span id='#{anchor_for(o)}'>" + h(o.name.to_s) + "</span>" }.join(", ") %></span> </span> <% end %> -</p> + + <% if owner != object.namespace %> + <span class="not_defined_here"> + Originally defined in <%= object.namespace.type %> + <%= linkify object, owner.relative_path(object.namespace) %> + </span> + <% end %> +</h3> \ No newline at end of file