#5940 Add forge name & logo options to default theme

v1.4.0
closed
sf-4 (350)
General
Heith Seewald
2016-01-11
2013-03-08
No

It'd be very nice to be able to configure the forge name and logo to be used on the header of all pages. This should be an option for forge deployers, without having to customize the theme.

Related

Tickets: #7902

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-03-08

    A global nav with custom links would be nice too. E.g. logo would link back to project root, but you may want to add links to certain neighborhoods, projects, or external pages.

     
  • Dave Brondsema

    Dave Brondsema - 2013-03-22
    • Milestone: pycon2013 --> forge-backlog
     
  • Dave Brondsema

    Dave Brondsema - 2015-08-10
    • labels: --> sf-current, sf-4
     
  • Igor Bondarenko - 2015-11-27
    • status: open --> in-progress
    • assigned_to: Igor Bondarenko
     
  • Igor Bondarenko - 2015-12-07
    • status: in-progress --> review
     
  • Igor Bondarenko - 2015-12-07

    Closed #866. ib/5940

     
  • Heith Seewald - 2015-12-09
    • Reviewer: Heith Seewald
     
  • Heith Seewald - 2015-12-09
    • status: review --> in-progress
     
  • Heith Seewald - 2015-12-09

    This is great -- I'm excited about this feature :)

    This is looking great overall -- I just have a couple of notes:

    1: We should add in some warnings instead of failing silently. Maybe something like:

    if not os.path.isfile(image_full_path):
        log.warning('Could not find logo at: %s' % image_full_path)
        return False
    
    if not image_path:
        log.warning('Image path not set for nav_logo')
        return False
    

    2: What do you think about making the image height settable or maybe just mentioning the ideal image dimensions in the comments?

    3: For simple data structures like the one for “logo”, using a simple dot notation can be more readable:

    logo.link = /
    logo.path = logo.png
    

    4: Because this is a universally useful feature -- it may be nice to mention it in our docs.

     
  • Igor Bondarenko - 2015-12-10

    Setting height makes sense for me and logo notation would be great in this case for sure! Will do

     
  • Igor Bondarenko - 2015-12-15
    • status: in-progress --> review
     
  • Igor Bondarenko - 2015-12-15

    Closed #880.

    ib/5940a (rebased on master)

    Note one test is failing here, but it is also failing on master. I've made fix for that https://forge-allura.apache.org/p/allura/git/merge-requests/63/

     
  • Heith Seewald - 2015-12-15
    • status: review --> closed
     
  • Heith Seewald - 2015-12-15

    This looks great, Igor -- nice work!

    merged

     
  • Dave Brondsema

    Dave Brondsema - 2015-12-15

    I've noticed a few followup issues with this, would you mind fixing?

    • the rat test has failed becaue there is a new file without a license header
    • the links in the footer have unnecessary left margin space.
     
    • Heith Seewald - 2015-12-16

      Nice catch!

      I'll change the status back to in-progress.

       
  • Heith Seewald - 2015-12-16
    • status: closed --> in-progress
     
  • Igor Bondarenko - 2015-12-21
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2015-12-22
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2016-01-11
    • labels: sf-current, sf-4 --> sf-4
     
  • Dave Brondsema

    Dave Brondsema - 2016-04-11
    • Milestone: unreleased --> v1.4.0
     

Log in to post a comment.