improve links with routes
This commit is contained in:
parent
308e31471a
commit
baf7775b98
|
@ -14,14 +14,14 @@
|
||||||
<section class="container">
|
<section class="container">
|
||||||
<nav role="navigation">
|
<nav role="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://localhost:4000/tracker">Clothes tracker</a></li>
|
<%= link "Clothes tracker", to: Routes.live_path(@conn, PokemonCoutureWeb.ClothesTrackerLive) %>
|
||||||
<%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
|
<%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
|
||||||
<li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
|
<li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<%= render "_user_menu.html", assigns %>
|
<%= render "_user_menu.html", assigns %>
|
||||||
</nav>
|
</nav>
|
||||||
<a href="http://localhost:4000/" class="phx-logo"> <!-- TODO: needs a way to show the proper link -->
|
<a href="<%= Routes.page_path(@conn, :index) %>" class="phx-logo"> <!-- TODO: needs a way to show the proper link -->
|
||||||
<img src="<%= Routes.static_path(@conn, "/images/phoenix.png") %>" alt="Phoenix Framework Logo"/>
|
<img src="<%= Routes.static_path(@conn, "/images/phoenix.png") %>" alt="Phoenix Framework Logo"/>
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
<h2>Navigation</h2>
|
<h2>Navigation</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="http://localhost:4000/tracker">Clothes tracker</a>
|
<%= link "Clothes tracker", to: Routes.live_path(@conn, PokemonCoutureWeb.ClothesTrackerLive) %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="http://localhost:4000/clothes">List of clothes</a>
|
<%= link "List of Clothes", to: Routes.clothes_path(@conn, :index) %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in New Issue