Example #1
0
        internal static string GetJobTitleHtml(IJob job, IResumeHighlighter highlighter)
        {
            string jobHtml = "";

            if (!string.IsNullOrEmpty(job.Title))
            {
                jobHtml = highlighter.HighlightJobTitle(job.Title);
            }

            return(jobHtml);
        }
Example #2
0
        internal static string GetEmployerHtml(IJob job, IResumeHighlighter highlighter, bool hideRecentEmployers, IJob previousJobForResume)
        {
            // Do not show the company names for the "current" and "previous" jobs (as defined in
            // RequirementsForMyVisibilityBasicSettingsPage) if the candidate has chosen
            // to hide these or the employer hasn't paid, but tell the employer whether these are available.
            // Note that the experience is no longer hidden as of 3.0.
            string jobHtml = "";

            if (!string.IsNullOrEmpty(job.Company))
            {
                bool hideEmployer = hideRecentEmployers && (job.Dates == null || job.Dates.End == null || job == previousJobForResume);

                jobHtml += (hideEmployer ? "<Employer hidden>" :
                            highlighter.HighlightJobTitle(job.Company));
            }
            return(jobHtml);
        }
Example #3
0
 protected string HighlightJobTitle(string jobTitle)
 {
     return(_resumeHighlighter.HighlightJobTitle(jobTitle));
 }