app/decorators/application_decorator.rb
# TODO: Move this to a view component
Move this to a view component
Move this to a view component
def status_tags
    {
      published: { text: "Published", colour: "green" },
      withdrawn: { text: "Withdrawn", colour: "red" },
      empty: { text: "Empty", colour: "grey" },
      draft: { text: "Draft", colour: "yellow" },
      published_with_unpublished_changes: { text: "Published&nbsp;*", colour: "green" },
      rolled_over: { text: "Rolled over", colour: "grey" },
    }
  end
def status_tags { published : { text : "Published" , colour : "green" } , withdrawn : { text : "Withdrawn" , colour : "red" } , empty : { text : "Empty" , colour : "grey" } , draft : { text : "Draft" , colour : "yellow" } , published_with_unpublished_changes : { text : "Published&nbsp;*" , colour : "green" } , rolled_over : { text : "Rolled over" , colour : "grey" } , } end
TODO: Move this to a view component
TODO : Move this to a view component