This repository was archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathIndex.cshtml
More file actions
91 lines (79 loc) · 2.19 KB
/
Index.cshtml
File metadata and controls
91 lines (79 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@model IEnumerable<O365_APIs_Start_ASPNET_MVC.Models.FileObject>
@{
ViewBag.Title = "Index";
}
<h1>My Files<span class="refreshlink"> @Html.ActionLink("Refresh", "Index")</span></h1>
<br />
<br />
@if (ViewBag.O365ServiceOperationFailed == true)
{
<h2>Oops you've reached an error!</h2>
<h4>
Outlook Services could not perform the operation. If it's a create or an edit operation, one of the most common
reasons for this error is invalid values in one or more of the fields.
Please try again and make sure the values you enter are valid.<span class="refreshlink"> @Html.ActionLink("Take me back to the list", "Index")</span>
</h4>
}
@if (ViewBag.O365ServiceOperationFailed == false)
{
<p>
@Html.ActionLink("Create New Text File", "Create")
</p>
<br />
<br />
<table class="table table-striped">
<tr>
<th>
</th>
<th>
Name
</th>
<th>
Item Type
</th>
<th>
Action
</th>
</tr>
@foreach (var item in Model)
{
<tr>
@if ((Request.QueryString["newid"]) == item.ID)
{
<td class="highlighter">New! </td>
}
else
{
if ((Request.QueryString["changedid"]) == item.ID)
{
<td class="highlighter">Updated! </td>
}
else
{
<td></td>
}
}
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.DisplayName)
</td>
@if (item.Name.EndsWith(".txt") || item.Name.EndsWith(".xml"))
{
<td>
@Html.ActionLink("Edit", "Edit", new { id = item.ID }) | @Html.ActionLink("Delete", "Delete", new { id = item.ID })
</td>
}
else
{
<td>
@Html.ActionLink("Delete", "Delete", new { id = item.ID })
</td>
}
</tr>
}
</table>
}
<br />
<br />