Sha256: 7cf66558208d74ef382879631588b0260353a9c2b15c25155ae63efb309a46c1

Contents?: true

Size: 896 Bytes

Versions: 5

Compression:

Stored size: 896 Bytes

Contents

h1.text-center 帐号列表

table.table.table-striped.table-hover.table-bordered
  thead
    tr
      th
      th 登录名
      th 标签
      th 头像
      th

  tbody
    - @accounts.each do |account|
      tr
        td = @num+=1
        td = account.login
        td = account.tags_list
        td 
          - if account.avatar
            - if account.avatar["content_type"].include?("image")
              = image_tag(main_app.see_path(account.avatar["grid_id"]))
        td 
          =<> link_to icon("eye"), account, class: "btn btn-default"
          - if is_root?
            =<> link_to icon('edit'), edit_account_path(account), class: "btn btn-default"
            =<> link_to icon('trash'), account, data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-default"

br

= paginate @accounts
p = link_to '新建帐号', new_account_path, class: "btn btn-primary"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oxen-0.0.5 app/views/oxen/accounts/index.html.slim
oxen-0.0.4 app/views/oxen/accounts/index.html.slim
oxen-0.0.3 app/views/oxen/accounts/index.html.slim
oxen-0.0.2 app/views/oxen/accounts/index.html.slim
oxen-0.0.1 app/views/oxen/accounts/index.html.slim