2010 December, 20 (Guerric) (2)

    Table of contents
    No headers
    // Paste PHP Code
    Index: Models/SiteModel.cs
    ===================================================================
    --- Models/SiteModel.cs	(revision 24319)
    +++ Models/SiteModel.cs	(working copy)
    @@ -57,6 +57,11 @@
             public int SeatsAssigned { get; set; }
             public string DefaultDomain { get; set; }
             public LicenseInfo LicenseInfo { get; set; }
    +
    +        // LicenseInfo wrappers
    +        public string Version {
    +            get { return LicenseInfo.Version ?? "(version unavailable)"; }
    +        }
             
             //--- Methods ---
             public string GetHostnameOrPrefix() {
    Index: Views/Account/Dashboard.aspx
    ===================================================================
    --- Views/Account/Dashboard.aspx	(revision 24319)
    +++ Views/Account/Dashboard.aspx	(working copy)
    @@ -12,12 +12,11 @@
     		        <span class="left">left</span>
     		        <span class="right">right</span>
     		    </div>
    -		    
    -                <p>
    -                    <% foreach(string notice in Model.Notices) { %>
    -                        <%=Html.Encode(notice)%><br />
    -                    <% } %>
    -                </p>
    +            <p>
    +                <% foreach(string notice in Model.Notices) { %>
    +                    <%=Html.Encode(notice)%><br />
    +                <% } %>
    +            </p>
                 <div class="bottom">
                     <span class="left">left</span>
                     <span class="right">right</span>
    @@ -40,7 +39,7 @@
     			    <div class="text-box">
     				    <p>You Are Running:</p>
     				    <h3><%= Model.ProductName %></h3>
    -				    <p>Version <%= Model.CurrentSite.LicenseInfo.Version %></p>
    +				    <p>Version <%= Model.CurrentSite.Version %></p>
     			    </div>
     		    </div>
     		    <div class="description-box">
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by