<commit_before>﻿@using Habitat.Accounts
@using Habitat.Accounts.Models
@using Habitat.Accounts.Services
@using Habitat.Accounts.Texts
@model Sitecore.Mvc.Presentation.RenderingModel
<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        <i class="fa fa-user"></i>
    </a>
    <ul class="dropdown-menu">
        @if (!(Sitecore.Context.IsLoggedIn && Sitecore.Context.PageMode.IsNormal))
        {
        <li>
            <a href="#" data-toggle="modal" data-target="#loginModal">Login</a>
        </li>
            <li>
                <a href="@AccountsSettingsService.Instance.GetPageLink(Model.Item, Templates.AccountsSettings.Fields.RegisterPage)">Register</a>
            </li>
        }
        else
        {
        <li>
            <div class="accounts-details">
                <dl class="dl-horizontal">
                    @if (!String.IsNullOrEmpty(Sitecore.Context.User.Profile.FullName))
                    {
                        <dt>@Captions.Name</dt>
                        <dd>@Sitecore.Context.User.Profile.FullName</dd>
                    }
                    <dt>@Captions.Email</dt>
                    <dd>@Sitecore.Context.User.Profile.Email</dd>
                </dl>
                <a href="@AccountsSettingsService.Instance.GetPageLink(Model.Item, Templates.AccountsSettings.Fields.AccountsDetailsPage)" class="btn btn-default">@Captions.EditDetails</a>
            </div>
        </li>
            <li>
                @using (Html.BeginForm("Logout", "Accounts", FormMethod.Post))
                {
                <input type="submit" value="@Captions.Logout" />
                }
            </li>
        }
    </ul>
</li>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <form class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">@Captions.Login</h4>
            </div>
            @Html.Partial("../Accounts/LoginDialog", new LoginInfo())
        </form>
    </div>
</div><commit_msg>Split first name and last name in accounts popup<commit_after>﻿@using Habitat.Accounts
@using Habitat.Accounts.Models
@using Habitat.Accounts.Services
@using Habitat.Accounts.Texts
@model Sitecore.Mvc.Presentation.RenderingModel
<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        <i class="fa fa-user"></i>
    </a>
    <ul class="dropdown-menu">
        @if (!(Sitecore.Context.IsLoggedIn && Sitecore.Context.PageMode.IsNormal))
        {
        <li>
            <a href="#" data-toggle="modal" data-target="#loginModal">Login</a>
        </li>
        <li>
            <a href="@AccountsSettingsService.Instance.GetPageLink(Model.Item, Templates.AccountsSettings.Fields.RegisterPage)">Register</a>
        </li>
        }
        else
        {
        <li>
            <div class="accounts-details">
                <dl class="dl-horizontal">
                    @if (!String.IsNullOrEmpty(Sitecore.Context.User.Profile.FullName))
                    {
                    <dt>@Captions.Name</dt>
                        <dd>@Sitecore.Context.User.Profile["FirstName"]<br/>@Sitecore.Context.User.Profile["LastName"]</dd>

                    }
                    <dt>@Captions.Email</dt>
                    <dd>@Sitecore.Context.User.Profile.Email</dd>
                </dl>
                <a href="@AccountsSettingsService.Instance.GetPageLink(Model.Item, Templates.AccountsSettings.Fields.AccountsDetailsPage)" class="btn btn-default">@Captions.EditDetails</a>
            </div>
        </li>
        <li>
            @using (Html.BeginForm("Logout", "Accounts", FormMethod.Post))
            {
            <input type="submit" value="@Captions.Logout" />
            }
        </li>
        }
    </ul>
</li>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <form class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">@Captions.Login</h4>
            </div>
            @Html.Partial("../Accounts/LoginDialog", new LoginInfo())
        </form>
    </div>
</div>
{'fraction_non_alphanumeric': 0.15595942519019443, 'fraction_numerical': 0.001267962806424345, 'mean_word_length': 1.8824604141291108, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 104, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6343853', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1347, 'n_words': 207}