カテゴリ&公開設定
このコミットが含まれているのは:
コミット
e26da1c28c
|
@ -92,4 +92,17 @@ function ptAvatar ($v) {
|
|||
return '/img/noicon.jpg';
|
||||
}
|
||||
|
||||
function ptPrivacy ($v) {
|
||||
$res = '不明';
|
||||
|
||||
switch ((int)$v) {
|
||||
case 1: $res = '公開'; break;
|
||||
case 2: $res = '未収載'; break;
|
||||
case 3: $res = '非公開'; break;
|
||||
case 4: $res = 'ローカルのみ'; break;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="section videos">
|
||||
<h1 class="section-title">
|
||||
<a href="/search?categoryOneOf={{ $res['video']->categories[0]->category->id }}">{{ $res['video']->categories[0]->category->label }}</a>
|
||||
<a href="/search?categoryOneOf={{ $res['video']->categories[0]->category->id }}">{{ ptGetCatId($res['video']->categories[0]->category->id) }}</a>
|
||||
</h1>
|
||||
@foreach ($res['video']->categories[0]->videos as $k => $v)
|
||||
@include('layout.component.common.videominature')
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<my-video-attributes>
|
||||
<div class="attribute">
|
||||
<span class="attribute-label">公開設定</span>
|
||||
<span class="attribute-value">{{ $res['detail']->privacy->label }}</span>
|
||||
<span class="attribute-value">{{ ptPrivacy($res['detail']->privacy->id) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="attribute">
|
||||
<span class="attribute-label">カテゴリ</span>
|
||||
@if (is_null($res['detail']->category->id)) <span class="attribute-value">{{ $res['detail']->category->label }}</span>
|
||||
@else <a class="attribute-value" href="/search?categoryOneOf={{ $res['detail']->category->id }}">{{ $res['detail']->category->label }}</a> @endif
|
||||
@if (is_null($res['detail']->category->id)) <span class="attribute-value">{{ ptGetCatId($res['detail']->category->id) }}</span>
|
||||
@else <a class="attribute-value" href="/search?categoryOneOf={{ $res['detail']->category->id }}">{{ ptGetCatId($res['detail']->category->id) }}</a> @endif
|
||||
</div>
|
||||
|
||||
@if (!is_null($res['detail']->originallyPublishedAt))
|
||||
|
|
新しいイシューから参照