Permalink
Commits on Jan 12, 2017
  1. Remove page_class template variable

    All formats set the page_class consistently, we can move this directly
    into the base layout and DRY up the individual format templates.
    
    This reduces the risk that a format is added in a way that behaves
    differently.
    fofr committed Jan 12, 2017
Commits on Jan 10, 2017
  1. Merge pull request #225 from alphagov/no-colons-in-contents

    Strip trailing colons from contents list
    fofr committed on GitHub Jan 10, 2017
  2. Merge pull request #227 from alphagov/update-formats-table

    Update README formats table
    fofr committed on GitHub Jan 10, 2017
Commits on Jan 6, 2017
Commits on Jan 5, 2017
  1. Set page class consistently

    Always set to the singular dasherized format
    fofr committed Jan 5, 2017
  2. Use content item description as metadata description

    * Simplify each of the formats
    * Protect against formats forgetting to include
    fofr committed Jan 5, 2017
  3. Update README formats table

    * Add speeches, consultations and statistical data sets
    * Add examples for now migrated formats
    fofr committed Jan 5, 2017
  4. Merge pull request #226 from alphagov/fix-translation-of-stats-announ…

    …cements
    
    Make official stats announcements translation key singular
    fofr committed on GitHub Jan 5, 2017
  5. Strip trailing colons from contents list

    When extracting headings from content, discard trailing colons. The
    colon may make sense in the body of content, but it’s incorrect in a
    list of contents.
    fofr committed Jan 5, 2017
  6. Allow speeches to be translated

    * Metadata module added in right-to-left support
    * Add right to left styling for speeches (matches case-studies approach)
    fofr committed Jan 3, 2017
  7. Merge pull request #222 from alphagov/refactor-titles

    Refactor title and context into module
    fofr committed on GitHub Jan 5, 2017
  8. Merge pull request #224 from alphagov/hide-empty-contents

    Don't show empty contents lists on HTML publications
    fofr committed on GitHub Jan 5, 2017
  9. Merge pull request #223 from alphagov/html-pubs-start-with-para

    Add space beneath HTML publication contents
    fofr committed on GitHub Jan 5, 2017
Commits on Jan 4, 2017
  1. Don't show empty contents lists

    Not all HTML publications have a list of headings. When there are none,
    don’t include the empty list or its associated heading.
    fofr committed Jan 4, 2017
  2. Add space beneath HTML pub contents

    Include a default margin beneath the blue block of contents
    fofr committed Jan 4, 2017
  3. Protect `other` block in metadata

    Previously, by setting `m[:other]`, custom values already set could be
    accidentally wiped.
    
    Instead start with an empty [:other] hash which the component handles
    correctly, then append to it as required.
    fofr committed Jan 4, 2017
  4. Move title and context logic into module

    Clean up each format’s template by moving format specific logic into
    module, with overrides in format presenters.
    
    Default:
    * Content item title
    * Context based on document type
    * Long title length
    
    This makes it difficult to include titles with the wrong attributes, eg
    missing long title length. It also highlights which formats are
    different.
    fofr committed Jan 4, 2017
  5. Add noopener and noreferrer to new window links

    Fixes #217
    
    We're using `[target=_blank]` which has a vulnerability
    https://mathiasbynens.github.io/rel-noopener/
    
    “To prevent pages from abusing window.opener, use rel=noopener. This
    ensures window.opener is null in Chrome 49 and Opera 36.”
    
    “For older browsers, you could use rel=noreferrer which also disables
    the Referer HTTP header”
    fofr committed Jan 4, 2017