Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Dec 5, 2012
  1. pass at trying to fix gemspec

    authored
Commits on Feb 25, 2010
  1. add `extend_region` helper for extension partials to more easily add …

    authored
    …to regions
    
    Example:
    
      - extend_region :thead do |thead|
        - include_stylesheet 'admin/extra_styles'
        - thead.custom_header do
          %th.custom Custom
    
    As before, this requires that the partial (and "custom_header" section from
    this example) is added to the corresponding parts of the admin UI in the
    `#activate` method of the extension.
  2. Expose `region_name` to partials which hook into multiple regions

    authored
    An extension can hook its view partial to multiple points in the admin UI:
    
      ## in MyExtension#activate
      admin.user.index[:thead].unshift 'users/index_extras'
      admin.user.index.add :thead, 'created_at_header', :after => 'roles_header'
      admin.user.index[:tbody].unshift 'users/index_extras'
      admin.user.index.add :tbody, 'created_at_cell', :after => 'roles_cell'
    
    Knowing the region name, the partial can adjust its output depending on
    the context. Here the extension changes user names to be displayed in
    uppercase caps and adds another column to the users overview table. It
    also pushes a custom stylesheet onto the stylesheets stack.
    
      ## in views/users/_index_extras.html.haml
      - if :thead == region_name
        - include_stylesheet 'admin/my_extension_extras'
        - defaults.created_at_header do
          %th.created_at Created at
    
      - elsif :tbody == region_name
        - defaults.title_cell do
          %td.user
            = link_to user.name.upcase, edit_admin_user_url(user)
    
        - defaults.created_at_cell do
          %td.created_at
            %time{ :datetime => user.created_at.xmlschema }
              &== #{time_ago_in_words(user.created_at)} ago
  3. Fix "New User/Layout/Snippet" buttons overlapping last row of the con…

    authored
    …tent
    
    Avoid -20px bottom margin in "outset" admin views. Some of these views have
    "Add" buttons at the bottom and those buttons would overlap with content,
    hiding the last row.
Commits on Feb 22, 2010
  1. @saturnflyer

    credit Dirk Kelly

    saturnflyer authored
  2. @saturnflyer

    Removing trailing comma

    saturnflyer authored
Commits on Feb 21, 2010
  1. @saturnflyer
Commits on Feb 15, 2010
  1. @saturnflyer
  2. @saturnflyer
  3. @saturnflyer
  4. @saturnflyer
  5. @saturnflyer
  6. @saturnflyer
  7. @saturnflyer
  8. @saturnflyer

    update credits and history

    saturnflyer authored
  9. @saturnflyer
  10. @saturnflyer
  11. @saturnflyer

    updated style names

    saturnflyer authored
  12. @saturnflyer
Commits on Feb 14, 2010
  1. @saturnflyer
  2. @saturnflyer

    use more mixins

    saturnflyer authored
  3. @saturnflyer

    update haml to 2.2.19

    saturnflyer authored
  4. @saturnflyer
  5. @saturnflyer
  6. @saturnflyer
  7. @saturnflyer
  8. @saturnflyer
Commits on Feb 5, 2010
  1. @jlong
Commits on Feb 2, 2010
  1. @banane

    undoing some bad edits

    banane authored
  2. @banane
Commits on Feb 1, 2010
  1. @banane

    removing comments

    banane authored
  2. @banane
Commits on Jan 29, 2010
  1. @banane
  2. @joshfrench
Something went wrong with that request. Please try again.