#439 Fix links in the headerbar
Merged 6 years ago by abompard. Opened 6 years ago by ryanlerch.
ryanlerch/fedora-hubs fix-links  into  develop

file modified
+2 -6
@@ -18,7 +18,7 @@ 

  

  <nav class="navbar navbar-expand-md navbar-light" id="navbar-top">

  

-   <a class="navbar-brand" href="#">

+   <a class="navbar-brand" href="{{ url_for('index') }}">

      <img src="{{ url_for('static', filename='img/logo-hubs.png') }}" alt="Hubs">

    </a>

  
@@ -51,11 +51,7 @@ 

            <img src="{{ g.auth.avatar }}" class="avatar" alt="User Icon"/>

          </a>

          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbar-dropdown-user">

-           <h6 class="dropdown-header">Account Information</h6>

-           <a href="#" class="dropdown-item">Full Name: {{ g.auth.fullname }}</a>

-           <a href="#" class="dropdown-item">Email: {{ g.auth.email }}</a>

-           <div class="dropdown-divider"></div>

-           <a href="{{ url_for('logout', next=request.url) }}" class="dropdown-item">Logout</a>

+           <a href="{{ url_for('logout', next=request.url) }}" class="dropdown-item"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a>

          </div>

        </li>

      </ul>

This adds the link to the index on the hubs-logo where it was previously just #.

This also removes the links to nothing under user and email that were in the user dropdown.

The only item in the user dropdown now is logout, and the font-awesome signout icon is now next to the text.

Fixes: #438

Pull-Request has been merged by abompard

6 years ago
Metadata