Merge pull request #620 from tiwariav/bugfix/blog_top_menu
bugfix/ cms blog top menu
This commit is contained in:
commit
3d0505330c
5 changed files with 40 additions and 38 deletions
|
@ -120,6 +120,11 @@
|
||||||
.header_slider .intro-cap {
|
.header_slider .intro-cap {
|
||||||
font-size: 3.25em;
|
font-size: 3.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header_slider > .carousel .item .container {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header_slider .intro_lead {
|
.header_slider .intro_lead {
|
||||||
|
|
|
@ -70,7 +70,7 @@ hr.small {
|
||||||
}
|
}
|
||||||
.navbar-custom .navbar-brand {
|
.navbar-custom .navbar-brand {
|
||||||
color: white;
|
color: white;
|
||||||
padding: 20px;
|
padding: 5px 20px;
|
||||||
}
|
}
|
||||||
.navbar-custom .navbar-brand:hover,
|
.navbar-custom .navbar-brand:hover,
|
||||||
.navbar-custom .navbar-brand:focus {
|
.navbar-custom .navbar-brand:focus {
|
||||||
|
|
|
@ -516,7 +516,7 @@ META_INCLUDE_KEYWORDS = ["ungleich", "hosting", "switzerland",
|
||||||
"Schweiz", "Swiss", "cdist"]
|
"Schweiz", "Swiss", "cdist"]
|
||||||
META_USE_SITES = True
|
META_USE_SITES = True
|
||||||
|
|
||||||
PARLER_LANGUAGES = {1: ({'code': 'en-us'}, {'code': 'de'},)}
|
PARLER_LANGUAGES = {SITE_ID: ({'code': 'en-us'}, {'code': 'de'},)}
|
||||||
AUTH_USER_MODEL = 'membership.CustomUser'
|
AUTH_USER_MODEL = 'membership.CustomUser'
|
||||||
|
|
||||||
# PAYMENT
|
# PAYMENT
|
||||||
|
|
|
@ -18,8 +18,8 @@ import debug_toolbar
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^index.html$', LandingView.as_view()),
|
url(r'^index.html$', LandingView.as_view()),
|
||||||
url(r'^open_api/', include('opennebula_api.urls',
|
url(r'^open_api/',
|
||||||
namespace='opennebula_api')),
|
include('opennebula_api.urls', namespace='opennebula_api')),
|
||||||
url(r'^railshosting/', RailsHostingView.as_view(),
|
url(r'^railshosting/', RailsHostingView.as_view(),
|
||||||
name="rails.hosting"),
|
name="rails.hosting"),
|
||||||
url(r'^nodehosting/', NodeJSHostingView.as_view(),
|
url(r'^nodehosting/', NodeJSHostingView.as_view(),
|
||||||
|
@ -28,8 +28,7 @@ urlpatterns = [
|
||||||
name="django.hosting"),
|
name="django.hosting"),
|
||||||
url(r'^nosystemd/', include('nosystemd.urls', namespace="nosystemd")),
|
url(r'^nosystemd/', include('nosystemd.urls', namespace="nosystemd")),
|
||||||
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
|
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
|
||||||
url(r'^jsi18n/(?P<packages>\S+?)/$',
|
url(r'^jsi18n/(?P<packages>\S+?)/$', i18n.javascript_catalog),
|
||||||
i18n.javascript_catalog),
|
|
||||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
urlpatterns += i18n_patterns(
|
urlpatterns += i18n_patterns(
|
||||||
|
@ -45,29 +44,22 @@ urlpatterns += i18n_patterns(
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
url(r'^datacenterlight/',
|
url(r'^datacenterlight/',
|
||||||
include('datacenterlight.urls', namespace="datacenterlight")),
|
include('datacenterlight.urls', namespace="datacenterlight")),
|
||||||
url(r'^hosting/', RedirectView.as_view(
|
url(r'^hosting/', RedirectView.as_view(url=reverse_lazy('hosting:login')),
|
||||||
url=reverse_lazy('hosting:login')), name='redirect_hosting_login'),
|
name='redirect_hosting_login'),
|
||||||
url(r'^alplora/', include('alplora.urls', namespace="alplora")),
|
url(r'^alplora/', include('alplora.urls', namespace="alplora")),
|
||||||
url(r'^membership/', include(membership_urls)),
|
url(r'^membership/', include(membership_urls)),
|
||||||
url(r'^digitalglarus/', include('digitalglarus.urls',
|
url(r'^digitalglarus/',
|
||||||
namespace="digitalglarus")),
|
include('digitalglarus.urls', namespace="digitalglarus")),
|
||||||
url(r'^cms/blog/',
|
url(r'^cms/blog/', include('ungleich.urls', namespace='ungleich')),
|
||||||
include('ungleich.urls', namespace='ungleich')),
|
url(r'^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$',
|
||||||
url(
|
|
||||||
r'^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$',
|
|
||||||
RedirectView.as_view(pattern_name='ungleich:post-detail')),
|
RedirectView.as_view(pattern_name='ungleich:post-detail')),
|
||||||
url(r'^blog/$', RedirectView.as_view(
|
url(r'^blog/$',
|
||||||
url=reverse_lazy('ungleich:post-list')
|
RedirectView.as_view(url=reverse_lazy('ungleich:post-list')), name='blog_list_view'),
|
||||||
), name='blog_list_view'
|
|
||||||
),
|
|
||||||
url(r'^cms/', include('cms.urls')),
|
url(r'^cms/', include('cms.urls')),
|
||||||
|
url(r'^blog/', include('djangocms_blog.urls', namespace='djangocms_blog')),
|
||||||
url(r'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS
|
url(r'^$', RedirectView.as_view(url='/cms') if REDIRECT_TO_CMS
|
||||||
else LandingView.as_view()),
|
else LandingView.as_view()),
|
||||||
url(r'^',
|
url(r'^', include('ungleich_page.urls', namespace='ungleich_page')),
|
||||||
include('ungleich_page.urls',
|
|
||||||
namespace='ungleich_page'),
|
|
||||||
name='ungleich_page'),
|
|
||||||
url(r'^blog/', include('djangocms_blog.urls', namespace='djangocms_blog')),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
|
|
|
@ -5,29 +5,34 @@
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
<div class="navbar-header page-scroll">
|
<div class="navbar-header page-scroll">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="https://www.ungleich.ch">
|
<a class="navbar-brand" href="https://www.ungleich.ch">
|
||||||
<img src="{% static "blog.ungleich.ch/img/logo_white.svg" %}" />
|
<img src="{% static "blog.ungleich.ch/img/logo_white.svg" %}" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
{% for child in children %}
|
<li>
|
||||||
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}">
|
<a href="{% url 'djangocms_blog:posts-latest' %}">Ungleich Blog</a>
|
||||||
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
|
</li>
|
||||||
{% if child.children %}
|
{% comment %}
|
||||||
<ul>
|
{% for child in children %}
|
||||||
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
|
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}">
|
||||||
</ul>
|
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
|
||||||
{% endif %}
|
{% if child.children %}
|
||||||
</li>
|
<ul>
|
||||||
{% endfor %}
|
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
{% endcomment %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.navbar-collapse -->
|
<!-- /.navbar-collapse -->
|
||||||
|
|
Loading…
Reference in a new issue