~bibledit/bibledit/ubuntu-cloud-beta

« back to all changes in this revision

Viewing changes to resource/comparative1edit.cpp

  • Committer: Teus Benschop
  • Date: 2022-10-14 16:03:26 UTC
  • Revision ID: teusjannette@gmail.com-20221014160326-42ybrpft4bblpruk
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
bool resource_comparative1edit_acl (void * webserver_request)
51
51
{
52
 
  return access_logic_privilege_view_resources (webserver_request);
 
52
  return access_logic::privilege_view_resources (webserver_request);
53
53
}
54
54
 
55
55
 
60
60
  
61
61
  string page;
62
62
  Assets_Header header = Assets_Header (translate("Comparative resource"), request);
63
 
  header.addBreadCrumb (menu_logic_settings_menu (), menu_logic_settings_text ());
 
63
  header.add_bread_crumb (menu_logic_settings_menu (), menu_logic_settings_text ());
64
64
  page = header.run ();
65
65
  Assets_View view;
66
66
  string error, success;
193
193
    // Possibly update the list of resources not to be cached on the client devices.
194
194
    if (cache) client_logic_no_cache_resource_remove(title);
195
195
    else client_logic_no_cache_resource_add(title);
 
196
    // Store the list of comparative resources for download by the client devices.
 
197
    {
 
198
      string path = resource_logic_comparative_resources_list_path ();
 
199
      filter_url_file_put_contents (path, filter_string_implode (resources, "\n"));
 
200
    }
196
201
  }
197
202
  
198
203
 
207
212
  view.set_variable ("casefold", get_checkbox_status (casefold));
208
213
  view.set_variable ("cache", get_checkbox_status (cache));
209
214
  page += view.render ("resource", "comparative1edit");
210
 
  page += Assets_Page::footer ();
 
215
  page += assets_page::footer ();
211
216
  return page;
212
217
}