Открыть боковую панель
nt_test131
nt_project_mew3zppo8pda
Коммиты
0fad3d1e
Коммит
0fad3d1e
создал
Май 17, 2018
по автору
Filipa Lacerda
Просмотр файлов
Revert "Merge branch 'osw-fix-boards-list-header-color' into 'master'"
This reverts commit
0e8f3d8e
.
владелец
92857b0d
Изменения
3
Скрыть пробелы
Построчно
Рядом
app/models/list.rb
Просмотр файла @
0fad3d1e
...
...
@@ -31,8 +31,7 @@ def as_json(options = {})
if
options
.
key?
(
:label
)
json
[
:label
]
=
label
.
as_json
(
project:
board
.
project
,
only:
[
:id
,
:title
,
:description
,
:color
],
methods:
[
:text_color
]
only:
[
:id
,
:title
,
:description
,
:color
]
)
end
end
...
...
app/views/shared/boards/components/_board.html.haml
Просмотр файла @
0fad3d1e
...
...
@@ -15,7 +15,7 @@
":title"
=>
'(list.label ? list.label.description : "")'
,
data:
{
container:
"body"
,
placement:
"bottom"
},
class:
"label color-label title board-title-text"
,
":style"
=>
"{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.text
C
olor ? list.label.text
C
olor :
\"
#2e2e2e
\"
) }"
}
":style"
=>
"{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.text
_c
olor ? list.label.text
_c
olor :
\"
#2e2e2e
\"
) }"
}
{{ list.title }}
-
if
can?
(
current_user
,
:admin_list
,
current_board_parent
)
...
...
spec/fixtures/api/schemas/list.json
Просмотр файла @
0fad3d1e
...
...
@@ -17,7 +17,6 @@
"required"
:
[
"id"
,
"color"
,
"text_color"
,
"description"
,
"title"
,
"priority"
...
...
@@ -30,7 +29,6 @@
},
"description"
:
{
"type"
:
[
"string"
,
"null"
]
},
"title"
:
{
"type"
:
"string"
},
"title"
:
{
"text_color"
:
"string"
},
"priority"
:
{
"type"
:
[
"integer"
,
"null"
]
}
}
},
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать