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