* Role names in header
* "Device to View:" in dashboard
* "Sign out"
This commit is contained in:
Keith Craig 2015-10-07 14:05:39 -07:00
Родитель eccaf02b8d
Коммит 06816a84eb
5 изменённых файлов: 69 добавлений и 8 удалений

Просмотреть файл

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -151,6 +151,15 @@ namespace GlobalResources {
}
}
/// <summary>
/// Looks up a localized string similar to Administrator.
/// </summary>
public static string AdministratorRole {
get {
return ResourceManager.GetString("AdministratorRole", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Alarm.
/// </summary>
@ -880,6 +889,15 @@ namespace GlobalResources {
}
}
/// <summary>
/// Looks up a localized string similar to Device to View: &lt;3.
/// </summary>
public static string DeviceToView {
get {
return ResourceManager.GetString("DeviceToView", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unable to update the device. An unexpected error occurred..
/// </summary>
@ -1492,6 +1510,15 @@ namespace GlobalResources {
}
}
/// <summary>
/// Looks up a localized string similar to Implicit Read-Only.
/// </summary>
public static string ImplicitReadOnlyRole {
get {
return ResourceManager.GetString("ImplicitReadOnlyRole", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to https://azure.microsoft.com/solutions/iot-suite/.
/// </summary>
@ -2095,6 +2122,15 @@ namespace GlobalResources {
}
}
/// <summary>
/// Looks up a localized string similar to Read-Only.
/// </summary>
public static string ReadOnlyRole {
get {
return ResourceManager.GetString("ReadOnlyRole", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Registered But Not Present.
/// </summary>
@ -2536,6 +2572,15 @@ namespace GlobalResources {
}
}
/// <summary>
/// Looks up a localized string similar to Sign Out &lt;3.
/// </summary>
public static string SignOut {
get {
return ResourceManager.GetString("SignOut", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Your simulated device has been created with these settings.
/// </summary>

Просмотреть файл

@ -1059,4 +1059,19 @@
<data name="RemoveDeviceConfirmation" xml:space="preserve">
<value>Remove Device</value>
</data>
<data name="AdministratorRole" xml:space="preserve">
<value>Administrator</value>
</data>
<data name="ImplicitReadOnlyRole" xml:space="preserve">
<value>Implicit Read-Only</value>
</data>
<data name="ReadOnlyRole" xml:space="preserve">
<value>Read-Only</value>
</data>
<data name="DeviceToView" xml:space="preserve">
<value>Device to View:</value>
</data>
<data name="SignOut" xml:space="preserve">
<value>Sign Out</value>
</data>
</root>

Просмотреть файл

@ -1,4 +1,5 @@
@using System.Collections.Generic
@using GlobalResources
@using System.Collections.Generic
@model IList<KeyValuePair<string, string>>
@{
@ -8,7 +9,7 @@
<div class="dashboardRightColumn">
<div class="dashboardDeviceSelection">
<form id="selectDevice">
<h5>Device to View:</h5>
<h5>@Strings.DeviceToView</h5>
<select id="deviceSelection" name="deviceSelection">
@foreach (KeyValuePair<string, string> pair in Model)
{

Просмотреть файл

@ -32,21 +32,21 @@
@{
if (User.Identity.IsAuthenticated)
{
@Html.ActionLink("Sign Out", "SignOut", "Account", new object { }, new { @class = "link_account" })
@Html.ActionLink(@Strings.SignOut, "SignOut", "Account", new object { }, new { @class = "link_account" })
}
if (User.IsInRole("Admin"))
{
<h2 class="header_page_subhead">Administrator</h2>
<h2 class="header_page_subhead">@Strings.AdministratorRole</h2>
}
else if (User.IsInRole("ReadOnly"))
{
<h2 class="header_page_subhead">ReadOnly</h2>
<h2 class="header_page_subhead">@Strings.ReadOnlyRole</h2>
}
else
{
<h2 class="header_page_subhead">IMPLICIT ReadOnly</h2>
<h2 class="header_page_subhead">@Strings.ImplicitReadOnlyRole</h2>
}
}
</div>