void GoBackTo()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "GoBackTo");
     if (s_OnGoBack != null)
     {
         s_OnGoBack(m_RevisionId, false);
     }
 }
 void UpdateTo()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "Update");
     if (s_OnUpdate != null)
     {
         s_OnUpdate(m_RevisionId, true);
     }
 }
 void ShowServicePage()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "ShowServices");
     if (s_OnShowServices != null)
     {
         s_OnShowServices();
     }
 }
 void Restore()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "Restore");
     if (s_OnRestore != null)
     {
         s_OnRestore(m_RevisionId, false);
     }
 }
 void ShowBuildForCommit()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "ShowBuild");
     if (s_OnShowBuild != null)
     {
         s_OnShowBuild(m_RevisionId);
     }
 }
        private void ShowAllClick()
        {
            var host = UnityConnect.instance.GetConfigurationURL(CloudConfigUrl.CloudServicesDashboard);
            var org  = UnityConnect.instance.GetOrganizationId();
            var proj = UnityConnect.instance.GetProjectGUID();
            var url  = string.Format("{0}/collab/orgs/{1}/projects/{2}/commits?commit={3}", host, org, proj, m_RevisionId);

            CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "ShowAllOnDashboard");
            Application.OpenURL(url);
        }
 void ToggleDropdown()
 {
     if (Contains(m_FilesContainer))
     {
         CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "CollapseAssets");
         Remove(m_FilesContainer);
         m_ToggleLabel.text = ToggleText(false);
     }
     else
     {
         CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "ExpandAssets");
         Add(m_FilesContainer);
         m_ToggleLabel.text = ToggleText(true);
     }
 }
 void ToggleDescription()
 {
     if (m_Expanded)
     {
         CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "CollapseDescription");
         m_Expanded = false;
         m_ExpandCollapseButton.text = "Show More";
         m_Description.text          = GetTruncatedDescription(m_FullDescription);
     }
     else
     {
         CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "ExpandDescription");
         m_Expanded = true;
         m_ExpandCollapseButton.text = "Show Less";
         m_Description.text          = m_FullDescription;
     }
 }
 void OnPageUpClicked()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "OlderPage");
     m_Data.OnPageChanged(m_Data.curPage + 1);
 }
 void OnPageDownClicked()
 {
     CollabAnalytics.SendUserAction(CollabAnalytics.historyCategoryString, "NewerPage");
     m_Data.OnPageChanged(m_Data.curPage - 1);
 }