public void WriteRowHtml(JiraTimeEntry jiraTimeEntry, JiraConnector.HtmlWriter htmlWriter) { const string dateFormat = "hh:mm tt"; htmlWriter.WriteBeginTag("tr"); htmlWriter.BeginStyleTag(htmlWriter); htmlWriter.WriteStyleAttribute("border-bottom", "1px solid #222222"); htmlWriter.EndStyleTag(htmlWriter); htmlWriter.WriteBeginTag("td"); htmlWriter.WriteAttribute("width", "300"); WriteTextStyle(htmlWriter, "#222222", "14px"); htmlWriter.Write(jiraTimeEntry.KeyWithDescription); htmlWriter.WriteEndTag("td"); htmlWriter.WriteBeginTag("td"); htmlWriter.WriteAttribute("width", "100"); WriteTextStyle(htmlWriter, "#222222", "14px"); htmlWriter.Write(jiraTimeEntry.TimeSpentDisplay); htmlWriter.WriteEndTag("td"); htmlWriter.WriteBeginTag("td"); WriteTextStyle(htmlWriter, "#888888", "11px"); htmlWriter.Write(jiraTimeEntry.StartedLocal.ToString(dateFormat) + " - " + jiraTimeEntry.EndedLocal.ToString(dateFormat)); htmlWriter.WriteEndTag("td"); htmlWriter.WriteEndTag("tr"); }
public void WriteRowHtml(DateTime date, JiraConnector.HtmlWriter htmlWriter) { htmlWriter.WriteFullBeginTag("tr"); htmlWriter.WriteBeginTag("td"); htmlWriter.WriteAttribute("colspan", "3"); WriteTextStyle(htmlWriter, "#222222", "21px"); htmlWriter.Write(date.ToString("D")); htmlWriter.WriteEndTag("span"); htmlWriter.WriteEndTag("td"); htmlWriter.WriteEndTag("tr"); }