mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #440 from gopesht/add_home_route_to_splash
Added route to root path for navigation from splash
This commit is contained in:
commit
fe17bd26e5
3 changed files with 1 additions and 21 deletions
|
|
@ -179,24 +179,6 @@ module ApplicationHelper
|
|||
result
|
||||
end
|
||||
|
||||
def default_brand
|
||||
link_to CONFIG['name'], root_path,
|
||||
class: 'navbar-brand',
|
||||
title: 'Open Source Event Manager'
|
||||
end
|
||||
|
||||
def short_title_brand(conference)
|
||||
link_to conference.short_title, conference_path(conference.short_title),
|
||||
class: 'navbar-brand',
|
||||
title: conference.title
|
||||
end
|
||||
|
||||
def brand
|
||||
content_for(:brand) ||
|
||||
(default_brand if controller.class.parent == Admin) ||
|
||||
default_brand
|
||||
end
|
||||
|
||||
def markdown(text)
|
||||
options = {
|
||||
autolink: true,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
= content_for :brand do
|
||||
= link_to @conference.short_title, conference_url(@conference.short_title), class: 'navbar-brand'
|
||||
= content_for :splash do
|
||||
.splash
|
||||
- if @conference.include_banner_in_splash?
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
= brand
|
||||
= link_to CONFIG['name'], root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
.collapse.navbar-collapse
|
||||
- if content_for :splash_nav
|
||||
%ul.nav.navbar-nav#splash-nav
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue