]> git.mxchange.org Git - friendica.git/commitdiff
frio: provide a edit profile button for the advanced profile page
authorrabuzarus <>
Wed, 5 Oct 2016 16:07:58 +0000 (18:07 +0200)
committerrabuzarus <>
Wed, 5 Oct 2016 16:07:58 +0000 (18:07 +0200)
view/theme/frio/css/style.css
view/theme/frio/templates/profile_advanced.tpl

index 84e8b6e7d852518dd4b2009135d5720268f88fde..7c6cb43ef6f15b215c22ad344472d61d60ad849e 100644 (file)
@@ -835,17 +835,19 @@ nav.navbar a {
     /*border-left: 3px solid #6fdbe8;*/
     border-left: 3px solid $link_color;
     color: #fff!important;
-    background-color: $menu_background_hover_color !important
+    background-color: $menu_background_hover_color !important;
 }
-.nav-pills.preferences .dropdown .dropdown-toggle {
-    color: #bebebe
+.nav-pills.preferences .dropdown .dropdown-toggle,
+.nav-pills.preferences > li > .btn {
+    color: #bebebe;
 }
 .nav-pills.preferences .dropdown.open .dropdown-toggle,
 .nav-pills.preferences .dropdown.open .dropdown-toggle:hover {
-    background-color: $nav_bg
+    background-color: $nav_bg;
 }
 
-.nav-pills.preferences .dropdown .dropdown-toggle {
+.nav-pills.preferences .dropdown .dropdown-toggle,
+.nav-pills.preferences > li > .btn {
     padding: 2px 10px;
 }
 
index f6941640ab1b56c1d70d969638809efb49a159ec..7c9a7bef1a64f8e05d41cbc79e30d619c0e68bee 100644 (file)
@@ -1,5 +1,5 @@
 
-<script>
+<script language="javascript" type="text/javascript">
        // the following functions show/hide the specific profile page content 
        // in dependence of the selected nav
        function profileStandardActive() {
 <div id="profile-page" class="generic-page-wrapper">
        <h3 class="">{{$title}}</h3>
 
+       {{* The link to edit the profile*}}
+       {{if $profile.edit}}
+       <ul class="nav nav-pills preferences">
+               <li class="pull-right">
+                       <a class="btn btn-link btn-sm" type="button" id="profile-edit-link" href="{{$profile.edit.0}}" title="{{$profile.edit.3}}">
+                               <i class="fa fa-pencil-square-o" aria-hidden="true"></i>&nbsp;{{$profile.edit.1}}
+                       </a>
+               </li>
+       </ul>
+       <div class="clear"></div>
+       {{/if}}
+
+       {{* Frio does split the profile information in "standard" and "advanced". This is the tab menu for swithching between this modes *}}
        <ul id="profile-menu" class="nav nav-tabs" role="menubar" data-tabs="tabs">
                <li class="active" role="menuitem"><a id="profile-tab-standard-link" onclick="profileStandardActive(); return false;">{{$basic}}</a></li>
                <li role="menuitem"><a id="profile-tab-advanced-link" onclick="profileAdvancedActive(); return false;">{{$advanced}}</a></li>
                {{/if}}
        </div>
 </div>
-