Skip to content

Commit

Permalink
PR suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmouritzen-splunk authored and floydtree committed Feb 23, 2024
1 parent 486907d commit 1119988
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions lib/schema_web/templates/page/object.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@
<%= if Enum.empty?(links) do %>
<div></div>
<% else %>
<div class="links">
<h5>Referenced By</h5>
<div class="extensions">
<%= raw object_links(@conn, @data[:name], links) %>
</div>
<a class="h5 links dropdown-toggle" data-toggle="collapse" data-target="#object-links" aria-expanded="false" aria-controls="object-links">Referenced By</a>
<div class="extensions collapse" id="object-links">
<%= raw object_links(@conn, @data[:name], links) %>
</div>
<% end %>
<% constraints = @data[:constraints] %>
Expand Down
8 changes: 3 additions & 5 deletions lib/schema_web/templates/page/profile.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,9 @@
<%= if Enum.empty?(links) do %>
<div></div>
<% else %>
<div class="links">
<h5>Referenced By</h5>
<div>
<%= raw profile_links(@conn, @data[:name], links) %>
</div>
<a class="h5 links dropdown-toggle" data-toggle="collapse" data-target="#profile-links" aria-expanded="false" aria-controls="object-links">Referenced By</a>
<div class="extensions collapse" id="profile-links">
<%= raw profile_links(@conn, @data[:name], links) %>
</div>
<% end %>
<script>
Expand Down
4 changes: 2 additions & 2 deletions lib/schema_web/views/page_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1042,9 +1042,9 @@ defmodule SchemaWeb.PageView do
defp deprecated(map, deprecated) do
[
Map.get(map, :description),
"<div class='text-dark mt-2 bg-warning'>DEPRECATED since v",
"<div class='text-dark mt-2'><span class='bg-warning'>DEPRECATED since v",
Map.get(deprecated, :since),
"</div>",
"</span></div>",
Map.get(deprecated, :message)
]
end
Expand Down

0 comments on commit 1119988

Please sign in to comment.