hardcode css and js source for now
Cette révision appartient à :
Parent
8383341dcd
révision
bfd629adb3
|
@ -19,7 +19,7 @@
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Website CSS -->
|
<!-- Website CSS -->
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="nyaa.pantsu.cat/css/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-default">
|
<nav class="navbar navbar-default">
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>Live Action - Idol/Promotional Video</option>
|
<option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>Live Action - Idol/Promotional Video</option>
|
||||||
<option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>Live Action - Raw</option>
|
<option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>Live Action - Raw</option>
|
||||||
</select>
|
</select>
|
||||||
<input name="q" class="form-control col-md-1" placeholder="Search" type="text">
|
<input name="q" class="form-control" placeholder="Search" type="text">
|
||||||
<select name="max" class="form-control" value>
|
<select name="max" class="form-control" value>
|
||||||
<option value="">Nb Item per Page</option>
|
<option value="">Nb Item per Page</option>
|
||||||
<option value="5" {{if eq .QueryRecordCount 5}}selected{{end}}>5</option>
|
<option value="5" {{if eq .QueryRecordCount 5}}selected{{end}}>5</option>
|
||||||
|
@ -138,6 +138,6 @@
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
<!-- Main Javascript File -->
|
<!-- Main Javascript File -->
|
||||||
<script type="text/javascript" charset="utf-8" src="js/main.js"></script>
|
<script type="text/javascript" charset="utf-8" src="nyaa.pantsu.cat/js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
4
main.go
4
main.go
|
@ -23,8 +23,8 @@ func getDBHandle() *gorm.DB {
|
||||||
dbInit, err := gorm.Open("sqlite3", "./nyaa.db")
|
dbInit, err := gorm.Open("sqlite3", "./nyaa.db")
|
||||||
|
|
||||||
// Migrate the schema of Torrents
|
// Migrate the schema of Torrents
|
||||||
// dbInit.AutoMigrate(&Torrents{})
|
//dbInit.AutoMigrate(&Torrents{})
|
||||||
// dbInit.AutoMigrate(&SubCategories{})
|
//dbInit.AutoMigrate(&Sub_Categories{})
|
||||||
|
|
||||||
checkErr(err)
|
checkErr(err)
|
||||||
return dbInit
|
return dbInit
|
||||||
|
|
Référencer dans un nouveau ticket