Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
773efb6c
Commit
773efb6c
authored
Sep 12, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify html two table to one table.
parent
2992a7ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
68 deletions
+82
-68
cap.css
src/DotNetCore.CAP/Dashboard/Content/css/cap.css
+3
-7
SubscriberPage.cshtml
src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.cshtml
+20
-20
SubscriberPage.generated.cs
...otNetCore.CAP/Dashboard/Pages/SubscriberPage.generated.cs
+59
-41
No files found.
src/DotNetCore.CAP/Dashboard/Content/css/cap.css
View file @
773efb6c
...
...
@@ -532,14 +532,10 @@ div.metric-null {
}
}
table
.margin-bottom-zero
{
margin-bottom
:
0px
;
}
.subscribe-table
td
{
border-top
:
non
e
!important
;
vertical-align
:
middl
e
!important
;
}
.subscribe-table
t
r
+
tr
td
{
border-top
:
1px
solid
#ddd
!important
;
.subscribe-table
t
d
[
rowspan
]
{
font-weight
:
bold
;
}
\ No newline at end of file
src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.cshtml
View file @
773efb6c
...
...
@@ -18,41 +18,41 @@
@if (subscribers.Count == 0)
{
<div class="alert alert-warning">
@Strings.ServersPage_NoServers
</div>
}
else
{
<div class="table-responsive">
<table class="table">
<table class="table
subscribe-table
">
<thead>
<tr>
<th width="20%">@Strings.Common_Group</th>
<th>
<table class="table subscribe-table margin-bottom-zero"><tr><td width="40%">@Strings.Common_Name</td><td>@Strings.Common_Method</td></tr></table>
<th
width="40%"
>
@Strings.Common_Name
</th>
<th>@Strings.Common_Method</th>
</tr>
</thead>
<tbody>
@foreach (var subscriber in subscribers)
{
<tr>
<td style="vertical-align:middle;font-weight:bold;">@subscriber.Key</td>
<td>
<table class="table subscribe-table table-condensed margin-bottom-zero"
>
@foreach (var column in subscriber.Value
)
{
<tr
>
<td width="40%">@column.Attribute.Name</td>
<td><span style="color:#00bcd4">@column.ImplTypeInfo.Name</span>:
@Html.MethodEscaped(column.MethodInfo)
</td>
</tr>
}
</table
>
</td>
</tr>
var i = 0;
@foreach (var column in subscriber.Value)
{
<tr
>
@if (i == 0
)
{
<td rowspan="@subscriber.Value.Count">@subscriber.Key</td
>
}
<td>@column.Attribute.Name</td>
<td>
<span style="color:#00bcd4">@column.ImplTypeInfo.Name</span>:
@Html.MethodEscaped(column.MethodInfo)
</td>
</tr
>
i++;
}
}
</tbody>
</table>
...
...
src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.generated.cs
View file @
773efb6c
...
...
@@ -91,11 +91,11 @@ WriteLiteral("</h1>\r\n\r\n");
#
line
default
#
line
hidden
WriteLiteral
(
" <div class=\"alert alert-warning\">\r\n
\r\n
"
);
WriteLiteral
(
" <div class=\"alert alert-warning\">\r\n "
);
#
line
2
2
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
#
line
2
1
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
ServersPage_NoServers
);
...
...
@@ -105,7 +105,7 @@ WriteLiteral("\r\n </div>\r\n");
#
line
2
4
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
#
line
2
3
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
}
else
{
...
...
@@ -113,123 +113,141 @@ WriteLiteral("\r\n </div>\r\n");
#
line
default
#
line
hidden
WriteLiteral
(
" <div class=\"table-responsive\">\r\n <table class=\"table
\">
"
+
"
\r\n <thead>\r\n <tr>\r\n
"
+
" <th width=\"20%\">"
);
WriteLiteral
(
" <div class=\"table-responsive\">\r\n <table class=\"table
s
"
+
"
ubscribe-table\">\r\n <thead>\r\n <tr>\r\n
"
+
"
<th width=\"20%\">"
);
#
line
3
1
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
#
line
3
0
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
Common_Group
);
#
line
default
#
line
hidden
WriteLiteral
(
"</th>\r\n <th
>\r\n <table c
"
+
"
lass=\"table subscribe-table margin-bottom-zero\"><tr><td width=\"40%\">
"
);
WriteLiteral
(
"</th>\r\n <th
width=\"40%\">\r\n
"
+
"
"
);
#
line
3
3
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
Common_Name
);
#
line
3
2
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
Common_Name
);
#
line
default
#
line
hidden
WriteLiteral
(
"
</td><td
>"
);
WriteLiteral
(
"
\r\n </th>\r\n <th
>"
);
#
line
3
3
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
Common_Method
);
#
line
3
4
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Strings
.
Common_Method
);
#
line
default
#
line
hidden
WriteLiteral
(
"</t
d></tr></table>\r\n </th>\r\n </
"
+
"
tr>\r\n </thead>\r\n
<tbody>\r\n"
);
WriteLiteral
(
"</t
h>\r\n </tr>\r\n </thead>\r\n
"
+
" <tbody>\r\n"
);
#
line
38
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
foreach
(
var
subscriber
in
subscribers
)
{
var
i
=
0
;
#
line
default
#
line
hidden
#
line
41
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
foreach
(
var
column
in
subscriber
.
Value
)
{
#
line
default
#
line
hidden
WriteLiteral
(
" <tr>\r\n <td style=\"vert"
+
"ical-align:middle;font-weight:bold;\">"
);
WriteLiteral
(
" <tr>\r\n"
);
#
line
41
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
subscriber
.
Key
);
#
line
44
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
if
(
i
==
0
)
{
#
line
default
#
line
hidden
WriteLiteral
(
"</td>\r\n <td>\r\n "
+
"<table class=\"table subscribe-table table-condensed margin-bottom-zero\">\r\n"
);
WriteLiteral
(
" <td rowspan=\""
);
#
line
44
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
foreach
(
var
column
in
subscriber
.
Value
)
{
#
line
46
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
subscriber
.
Value
.
Count
);
#
line
default
#
line
hidden
WriteLiteral
(
" <tr>\r\n "
+
" <td width=\"40%\">"
);
WriteLiteral
(
"\">"
);
#
line
46
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
subscriber
.
Key
);
#
line
default
#
line
hidden
WriteLiteral
(
"</td>\r\n"
);
#
line
47
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
column
.
Attribute
.
Name
);
}
#
line
default
#
line
hidden
WriteLiteral
(
"</td>\r\n <td><span style=\"color:#00"
+
"bcd4\">"
);
WriteLiteral
(
" <td>"
);
#
line
48
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
column
.
ImplTypeInfo
.
Name
);
Write
(
column
.
Attribute
.
Name
);
#
line
default
#
line
hidden
WriteLiteral
(
"</span>: \r\n "
);
WriteLiteral
(
"</td>\r\n <td>\r\n "
+
" <span style=\"color:#00bcd4\">"
);
#
line
49
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Html
.
MethodEscaped
(
column
.
MethodInfo
)
);
#
line
50
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
column
.
ImplTypeInfo
.
Name
);
#
line
default
#
line
hidden
WriteLiteral
(
"\r\n </td>\r\n "
+
" </tr>\r\n"
);
WriteLiteral
(
"</span>:\r\n "
);
#
line
5
2
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
}
#
line
5
1
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
Write
(
Html
.
MethodEscaped
(
column
.
MethodInfo
));
#
line
default
#
line
hidden
WriteLiteral
(
" </table>\r\n </t"
+
"d>\r\n </tr>\r\n"
);
WriteLiteral
(
"\r\n </td>\r\n </tr"
+
">\r\n"
);
#
line
56
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
#
line
54
"..\..\Dashboard\Pages\SubscriberPage.cshtml"
i
++;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment