!!! 5
%html
  %head
    %meta(charset="utf-8")
    %meta(httpEquiv="X-UA-Compatible", content="IE=edge,chrome=1")
    %title
      %%block(name="title")
      \- Dexter
    %meta(name='csrf-param', value='csrf_token')
    %meta(name='csrf-token', value=csrf_token())
    %meta(name="viewport", content="width=device-width, initial-scale=1.0")
    - for url in webassets('css'):
      %link(rel="stylesheet", href=url)

  %body
    %header
      .navbar.navbar-default
        .container
          .navbar-header
            %a.navbar-brand(href="/")
              Dexter

    .container
      -# show flash messages
      - for category, message in (get_flashed_messages(with_categories=True) or []):
        - category = 'info' if category == 'message' else category
        - category = 'danger' if category == 'error' else category
        %p.alert(class_="alert-" + category)
          &= message

      ${next.body()}

    %footer
      .container

    - for url in webassets('js'):
      %script(src=url)

!!! 5
%html
  %head
    %meta(charset="utf-8")
    %meta(httpEquiv="X-UA-Compatible", content="IE=edge,chrome=1")
    %title
      %%block(name="title")
      \- Dexter
    %meta(name='csrf-param', value='csrf_token')
    %meta(name='csrf-token', value=csrf_token())
    %meta(name="viewport", content="width=device-width, initial-scale=1.0")
    - for url in webassets('css'):
      %link(rel="stylesheet", href=url)

  %body
    %header
      .navbar.navbar-default
        .container
          .navbar-header
            %a.navbar-brand(href="/")
              Dexter

          .pull-right
            %a.btn.btn-default.navbar-btn(href=url_for('new_article'))
              %i.fa.fa-plus
              Add article

    .container
      -# show flash messages
      - for category, message in (get_flashed_messages(with_categories=True) or []):
        - category = 'info' if category == 'message' else category
        - category = 'danger' if category == 'error' else category
        %p.alert(class_="alert-" + category)
          &= message

      ${next.body()}

    %footer
      .container

    - for url in webassets('js'):
      %script(src=url)

Add button to add an article.
Add button to add an article.
