Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !39 opened Mar 18, 2014 by Kálmán Viktor@kviktor 
  • Report abuse
Report abuse

Feature dashboard context processor

Change company name in footer via settings file and display notifications on all pages.

closes #50 (closed)

  • Discussion 3
  • Commits 5
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Őry Máté
    @orymate started a discussion on an old version of the diff Mar 19, 2014
    circle/circle/settings/base.py
    393 395 'DJANGO_SAML_ORG_ID_ATTRIBUTE')
    394 396  
    395 397 LOGIN_REDIRECT_URL = "/"
    398
    399 COMPANY_NAME = "BME VIK 2014"
    • Őry Máté @orymate commented Mar 19, 2014
      Owner

      IK

      IK
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on the diff Mar 19, 2014
    circle/dashboard/context_processors.py
    1 from django.conf import settings
    2
    3
    4 def notifications(request):
    5 count = (request.user.notification_set.filter(status="new").count()
    6 if request.user.is_authenticated() else None)
    7 return {
    8 'NEW_NOTIFICATIONS_COUNT': count
    • Őry Máté @orymate commented Mar 19, 2014
      Owner

      this can be removed from index view (circle/dashboard/views.py#L109)

      Edited Mar 19, 2014
      this can be removed from index view (circle/dashboard/views.py#L109)
    Please register or sign in to reply
  • Őry Máté @orymate commented Mar 19, 2014
    Owner

    👍 merge it!

    :+1: merge it!
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud!39