add feed table (mock-data)

This commit is contained in:
chsakell
2016-10-03 10:39:45 +03:00
parent ac92ee2d30
commit 4f2b3ea97f
4 changed files with 48 additions and 21 deletions

View File

@@ -56,25 +56,7 @@ namespace LiveGameFeed.Data
}
};
Match match_03 = new Match
{
Host = "Team 5",
Guest = "Team 6",
HostScore = 0,
GuestScore = 0,
MatchDate = DateTime.Now,
Type = MatchTypeEnums.Basketball,
Feeds = new List<Feed>
{
new Feed()
{
Description = "Match started",
MatchId = 3
}
}
};
context.Matches.Add(match_01); context.Matches.Add(match_02); context.Matches.Add(match_03);
context.Matches.Add(match_01); context.Matches.Add(match_02);
context.SaveChanges();
}

View File

@@ -24,5 +24,45 @@
</button>
</td>
</tr>
<tr>
<td><button type="button" class="btn btn-default btn-xs">Send</button></td>
<td><input type="text" class="form-control" placeholder="Type message.." /></td>
</tr>
<tr>
<td colspan="2">
<div class="feed-table">
<table class="table table-striped">
<thead>
<tr>
<th>Feed</th>
</tr>
</thead>
<tbody>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>

View File

@@ -8,7 +8,7 @@
}
},
"TimeService": {
"DueTime": 6000,
"Period": 5000
"DueTime": 10000,
"Period": 10000
}
}

View File

@@ -22,3 +22,8 @@ body {
th, td {
text-align: center;
}
.feed-table {
height: 190px;
overflow: auto;
}