~bibledit/bibledit/ubuntu-cloud-beta

« back to all changes in this revision

Viewing changes to html/header.cpp

  • Committer: Teus Benschop
  • Date: 2023-09-12 15:00:50 UTC
  • Revision ID: teusjannette@gmail.com-20230912150050-4o7xrniiem5mq9xp
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
void Html_Header::create (const vector <pair <string, string> > & breadcrumbs)
59
59
{
60
60
  HtmlText * html_text = static_cast<HtmlText *>(m_html_text);
61
 
  xml_node tableElement = html_text->new_table ();
62
 
  xml_node tableRowElement = html_text->new_table_row (tableElement);
63
 
  xml_node tableDataElement = html_text->new_table_data (tableRowElement);
 
61
  xml_node table_element = html_text->new_table ();
 
62
  xml_node table_row_element = html_text->new_table_row (table_element);
 
63
  xml_node table_data_element = html_text->new_table_data (table_row_element);
64
64
  for (auto breadcrumb : breadcrumbs) {
65
 
    html_text->add_link (tableDataElement, breadcrumb.second, "", breadcrumb.first, "", ' ' + breadcrumb.first + ' ');
 
65
    html_text->add_link (table_data_element, breadcrumb.second, "", breadcrumb.first, "", ' ' + breadcrumb.first + ' ');
66
66
  }
67
 
  tableDataElement = html_text->new_table_data (tableRowElement, true);
68
 
  xml_node formElement = tableDataElement.append_child ("form");
 
67
  table_data_element = html_text->new_table_data (table_row_element, true);
 
68
  xml_node formElement = table_data_element.append_child ("form");
69
69
  formElement.append_attribute ("action") = "/webbb/search";
70
70
  formElement.append_attribute ("method") = "GET";
71
71
  formElement.append_attribute ("name") = "search";