Skip to content

Commit 811b149

Browse files
committed
Delete css
1 parent d788510 commit 811b149

File tree

6 files changed

+7
-16
lines changed

6 files changed

+7
-16
lines changed

src/main/resources/net/yoshinorin/gitbucket/monitoring/assets/style.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/scala/Plugin.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class Plugin extends gitbucket.core.plugin.Plugin {
1919
(context: Context) => Some(Link("monitoring", "Monitoring", "admin/monitoring", Some("server")))
2020
)
2121

22-
override val assetsMappings = Seq("/monitoring" -> "/gitbucket/monitoring/assets")
23-
2422
override val controllers = Seq(
2523
"/*" -> new MonitoringController
2624
)

src/main/twirl/net/yoshinorin/gitbucket/monitoring/helper/colsm2.scala.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
<div class="panel panel-default">
55
<div class="panel-heading strong">@title</div>
66
<div class="panel-body text-right">
7-
@content match {
8-
case Error.NOTSUPPORTED.message => { <div class="error"> @content </div> }
9-
case Error.FAILURE.message => { <div class="error"> @content </div> }
10-
case _ => { @content }
11-
}
7+
@content
128
</div>
139
</div>
1410
</div>

src/main/twirl/net/yoshinorin/gitbucket/monitoring/information/process.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="panel-heading strong">Load Average</div>
1111
<div class="panel-body">
1212
@loadAve match {
13-
case Left(error) => { <div class="error"> @error.message </div> }
13+
case Left(error) => { @error.message }
1414
case Right(l) => {
1515
<div class="row">
1616
@OperatingSystem.osType match {
@@ -28,7 +28,7 @@
2828
<div class="panel-heading strong">Process</div>
2929
<div class="panel-body">
3030
@tasks match {
31-
case Left(error) => { <div class="error"> @error.message </div> }
31+
case Left(error) => { @error.message }
3232
case Right(t) => {
3333
<div class="row">
3434
@net.yoshinorin.gitbucket.monitoring.helper.html.colsm2("Running", (t.running + "/" + t.total))

src/main/twirl/net/yoshinorin/gitbucket/monitoring/information/resources.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<span class="strong"></span>Physical
3030
</label>
3131
@memory match {
32-
case Left(error) => { <div class="error"> @error.message </div> }
32+
case Left(error) => { @error.message }
3333
case Right(m) => {
3434
<div class="row">
3535
@m.used match {
@@ -57,7 +57,7 @@
5757
</label>
5858
<div class="row">
5959
@swap match {
60-
case Left(error) => { <div class="error"> @error.message </div> }
60+
case Left(error) => { @error.message }
6161
case Right(s) => {
6262
@net.yoshinorin.gitbucket.monitoring.helper.html.colsm2("Used", s.used + "/" + s.total + "MB")
6363
@net.yoshinorin.gitbucket.monitoring.helper.html.colsm2("Free", s.free + "/" + s.total + "MB")

src/main/twirl/net/yoshinorin/gitbucket/monitoring/information/system.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ <h6><span class="label label-primary">On Docker</span></h6>
4141
<div class="row">
4242
<label class="col-md-2">StartTime</label>
4343
<span class="col-md-10">@upTime match {
44-
case Left(error) => { <div class="error"> @error.message </div> }
44+
case Left(error) => { @error.message }
4545
case Right(u) => { @u.startTime }
4646
}
4747
</span>
4848
</div>
4949
<div class="row">
5050
<label class="col-md-2">UpTime</label>
5151
<span class="col-md-10">@upTime match {
52-
case Left(error) => { <div class="error"> @error.message </div> }
52+
case Left(error) => { @error.message }
5353
case Right(u) => { @u.upTime }
5454
}
5555
</span>

0 commit comments

Comments
 (0)