Tasks admin tags - WIP


This is a WIP PR to allow code review in parallel

Refactored code to avoid extra code in _grouped_index.html.haml including test to verify
Added main logic and bootstrap style (based on checkboxes) to allow merging and deleting tags if user is admin
Removed unused flags resources
Added some styles to allow showing debug information in screen while running in dev environment

Still Pending:
Control params for new action "reorganize" in tags_controller 
Adding control to avoid merges without new names.
Adding warning popup before merging or deletion
Adding Tests
Como hemos aclarado por skype voy a separar en 3 vistas : query for normal users, rename for admin y delete for admin

BlackBerry de movistar, allí donde estés está tu oficin@

-----Original Message-----
From: Saverio Trioni <notifications@github.com>
Date: Wed, 24 Dec 2014 09:19:30 
To: coopdevs/timeoverflow<timeoverflow@noreply.github.com>
Reply-To: coopdevs/timeoverflow <reply@reply.github.com>
Cc: Daniel Macho<danielmacho72@gmail.com>
Subject: Re: [timeoverflow] Tasks admin tags - WIP (#113)

> +      - alpha_tags.each_slice(6) do |gr|
> +        .row
> +          - gr.each do |kg, vl|
> +            .col-xs-2
> +              %h2.bg-info.text-center
> +                = kg
> +              - vl.each do |tag, count|
> +                %p
> +                  .badge
> +                    = count
> +                  - path = get_index_path(@current_post_type.pluralize, tag: tag)
> +                  = link_to path do
> +                    - gtag = (count == 1) ? "tag" : "tags"
> +                    = glyph(gtag)
> +                    = tag
> +                  - if is_admin

Pare que quieren ver los non-admins esta vista?

---
Reply to this email directly or view it on GitHub:
https://github.com/coopdevs/timeoverflow/pull/113/files#r22260480