ソースを参照

ごめん

peertube
コミット
b9ebcbb3d4
  1. 3
      app/Http/Controllers/Home/Comment.php
  2. 36
      resources/views/theme/techsuwa/bash.blade.php

3
app/Http/Controllers/Home/Comment.php

@ -7,7 +7,7 @@ use Illuminate\Http\Request;
class Comment {
public function add (Request $r) {
if (!isset($r->submit)) return '';
if (!isset($r->submit)) return redirect('/');
$isvideo = false;
if (!$cont = DB::table('blg_content')->where('slug', $r->slug)->first()) { if ($cont = DB::table('vid_video')->where('vid', $r->slug)->first()) $isvideo = true; }
@ -26,7 +26,6 @@ class Comment {
]);
// 返事だったら、メールを送って
return redirect('/'.($isvideo ? 'video/play' : 'blog').'/'.$r->slug.'#comment-'.$add);
}
}

36
resources/views/theme/techsuwa/bash.blade.php

@ -1,26 +1,26 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<title>{{ config('app.name', 'Laravel') }}</title>
<style>
body {
background: url('/img/bash/81004208_p0.jpg') no-repeat;
background-position: center 25%;
}
</style>
</head>
<body>
<style>
body {
background: url('/img/bash/81004208_p0.jpg') no-repeat;
background-position: center 25%;
}
</style>
</head>
<body>
@yield('content')
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
</body>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
</body>
</html>

読み込み中…
キャンセル
保存