• This project
    • Loading...
  • Sign in

Patricio Sanchez / quiniela-mundial

Elementos brand ukko 05 cropped
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • quiniela-mundial
  • app
  • views
  • admin
  • pools
  • index.html.slim
  • psanchezp's avatar
    Merge · bf555f49
    bf555f49
    psanchezp authored 2018-06-11 18:20:02 -0500
index.html.slim 499 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
.admin-index
  h2
    | Pools
    = link_to 'New Pool', new_admin_pool_path, style: 'float: right'

  - attrs = %i[name editable_until active]
  table
    thead
      - attrs.each do |a|
        th = Pool.human_attribute_name(a)
      th Matches
      th
    tbody
      tbody
        - @object_collection.each do |model|
          - attrs.each do |a|
            td = model.send(a)
          td #{model.matches.count} matches
          td
            = link_to 'Edit', edit_admin_pool_path(model)