Sha256: a7d6b887b75df35e52c18374f0c074f4a7ccd22ac43a6bc35a5fafec02a01da1

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

- logo_url, the_title = rad.config.logo_url, rad.config.title
- b.top_panel do |o|
  - o.logo_image tag(:a, image_tag(logo_url), href: '/') if logo_url
  - o.logo_text tag(:a, the_title, href: '/') if the_title

  - if breadcrumb?
    - o.left do |a|
      - breadcrumb.each do |o|
        - a.add o

  - o.right do |a|
    - if Models::User.current.registered?
      - a.add link_to(Models::User.current.name, user_path(Models::User.current))
      - a.add link_to(t(:logout), logout_path)
    - else
      - a.add link_to(t(:anonymous), login_path)
      - a.add link_to(t(:login), login_path)
      - a.add link_to(t(:signup), signup_path)
    - rad.extension(:user_menu, self, a)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_kit-0.0.10 app/views/kit/_top_panel.html.haml