bug forum

This commit is contained in:
Nicolas Bally 2014-12-10 23:14:24 +01:00
parent f3e0c7f70d
commit feb43eaed5
2 changed files with 32 additions and 31 deletions

View File

@ -15,40 +15,41 @@
%body.admin
%nav#admin_nav.navbar.navbar-default.navbar-inverse{role: "navigation", :style => "border-radius:0;"}
.container-fluid
/ Brand and toggle get grouped for better mobile display
.navbar-header
%button.navbar-toggle{"data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{href: "/forum"}
=ic(:home, :icon => false)
Forum du Pic Vert
-if current_fuser
%nav#admin_nav.navbar.navbar-default.navbar-inverse{role: "navigation", :style => "border-radius:0;"}
.container-fluid
/ Brand and toggle get grouped for better mobile display
.navbar-header
%button.navbar-toggle{"data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{href: "/forum"}
=ic(:home, :icon => false)
Forum du Pic Vert
#bs-example-navbar-collapse-1.collapse.navbar-collapse
%ul.nav.navbar-nav
%li=link_to "Fils de discussion", forum_forum_topics_path
%li=link_to "Utilisateurs", forum_forum_users_path
%li=link_to "Catégories", forum_forum_categories_path if moderator?
#bs-example-navbar-collapse-1.collapse.navbar-collapse
%ul.nav.navbar-nav
%li=link_to "Fils de discussion", forum_forum_topics_path
%li=link_to "Utilisateurs", forum_forum_users_path
%li=link_to "Catégories", forum_forum_categories_path if moderator?
%ul.nav.navbar-nav.navbar-right
%li.dropdown
%a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
=image_tag (current_fuser.avatar? ? current_fuser.avatar.square.url : ""), :class => "img img-rounded", :style => "height:15px;"
=current_fuser.firstname
=current_fuser.name
%b.caret
%ul.dropdown-menu
%li=link_to "Mon profil", [:forum, current_fuser]
%li= link_to "Mes paramètres", edit_forum_forum_user_path(current_fuser)
%li.divider
%li=link_to "se déconnecter", logout_forum_auths_path, :method => :delete
%ul.nav.navbar-nav.navbar-right
%li.dropdown
%a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
=image_tag (current_fuser.avatar? ? current_fuser.avatar.square.url : ""), :class => "img img-rounded", :style => "height:15px;"
=current_fuser.firstname
=current_fuser.name
%b.caret
%ul.dropdown-menu
%li=link_to "Mon profil", [:forum, current_fuser]
%li= link_to "Mes paramètres", edit_forum_forum_user_path(current_fuser)
%li.divider
%li=link_to "se déconnecter", logout_forum_auths_path, :method => :delete

View File

@ -27,8 +27,8 @@ class CreateForumUsers < ActiveRecord::Migration
t.string :current_sign_in_ip
t.string :last_sign_in_ip
t.boolean :lock
t.datetime :locked_at
t.boolean :lock
t.datetime :locked_at