implement color picking from predefined set for category badges + option to change foreground color

This commit is contained in:
Kuba Brecka
2013-03-14 14:16:57 +01:00
parent a8c44d90a3
commit 8784c55188
17 changed files with 142 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ require_dependency 'excerpt_type'
class CategoryExcerptSerializer < ActiveModel::Serializer
include ExcerptType
attributes :excerpt, :name, :color, :slug, :topic_url, :topics_year,
attributes :excerpt, :name, :color, :text_color, :slug, :topic_url, :topics_year,
:topics_month, :topics_week, :category_url, :can_edit, :can_delete

View File

@@ -3,6 +3,7 @@ class CategorySerializer < ApplicationSerializer
attributes :id,
:name,
:color,
:text_color,
:slug,
:topic_count,
:description,