[Kimchi-devel] [PATCH] [Wok] Fix Kimchi issue #1032: Remove 'Peers' dropdown from Wok header

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Tue Sep 27 17:34:29 UTC 2016


Tested-By: Paulo Vital <pvital at linux.vnet.ibm.com>
Reviewed-By: Paulo Vital <pvital at linux.vnet.ibm.com>

On Tue, 2016-09-27 at 14:06 -0300, Aline Manera wrote:
> The federation feature (provided by Kimchi) is responsible to list
> the
> peers found in the same network using openSLP.
> 
> The UI for this feature is done in Kimchi code by extending the
> Dashboard tab content (provided by Ginger Base). So remove any
> reference
> to peers in Wok source code.
> 
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  ui/css/theme-default/topbar.css | 34 -----------------------------
> -----
>  ui/pages/wok-ui.html.tmpl       |  7 -------
>  2 files changed, 41 deletions(-)
> 
> diff --git a/ui/css/theme-default/topbar.css b/ui/css/theme-
> default/topbar.css
> index 33624aa..43b8b39 100644
> --- a/ui/css/theme-default/topbar.css
> +++ b/ui/css/theme-default/topbar.css
> @@ -177,40 +177,6 @@ a#btn-logout:hover {
>      }
>  }
> 
> -.peers {
> -    color: white;
> -    cursor: pointer;
> -    height: 52px;
> -    margin: 0 12px;
> -}
> -
> -.peers span {
> -    margin-top: 25px;
> -}
> -
> -.peers .arrow {
> -    border: 6px solid transparent;
> -    border-bottom: none;
> -    border-top-color: white;
> -    display: inline-block;
> -    width: 0;
> -}
> -
> -.peers .dropdown {
> -    top: 45px;
> -    right: 110px;
> -    color: black;
> -    padding: 10px 15px;
> -    white-space: nowrap;
> -    line-height: 12px;
> -    width: inherit;
> -}
> -
> -.peers .dropdown a {
> -    display: block;
> -    padding: 10px;
> -}
> -
>  .hide-content {
>      display: none!important;
>  }
> diff --git a/ui/pages/wok-ui.html.tmpl b/ui/pages/wok-ui.html.tmpl
> index e49b602..22a67e7 100644
> --- a/ui/pages/wok-ui.html.tmpl
> +++ b/ui/pages/wok-ui.html.tmpl
> @@ -123,13 +123,6 @@
>                <a id="logo" class="navbar-brand" href="#"
> title="Wok">Wok</a>
>              </div>
>              <ul class="nav navbar-nav navbar-right">
> -                <li class="dropdown hide-content peers" id="peers">
> -                    <a href="#" class="dropdown-toggle" data-
> toggle="dropdown" role="button" aria-haspopup="true" aria-
> expanded="false"><span class="topbar-text">$_("Peers")</span><span
> class="caret"></span></a>
> -                   <ul class="dropdown-menu">
> -                       <li id="search-
> peers"><span>$_("Searching")...</span></li>
> -                       <li id="no-peers" class="hide-content">$_("No 
> peers found.")</li>
> -                   </ul>
> -                </li>
>                  <li class="dropdown" id="user-login">
>                      <a href="#" class="dropdown-toggle" data-
> toggle="dropdown" role="button" aria-haspopup="true" aria-
> expanded="false">
>                          <i class="fa fa-user" id="user-
> icon"></i><span class="topbar-text empty-when-logged-off" id="user-
> name"></span><span class="caret"></span>




More information about the Kimchi-devel mailing list