Function create_pic_list_page

Source
fn create_pic_list_page(
    pic_list: &BTreeMap<String, PicEntry>,
    img_path_dir: &str,
    start: usize,
    page_by: usize,
    title: &str,
    commands: &[(&str, &str)],
) -> String
Expand description

history/archive 共用写真リスト HTML 生成。

  • pic_list - 画像データ。
  • start - pic_list の何番目から表示するか。
  • page_by - start からいくつ画像を表示するか。
  • title - タイトル。
  • commands - POST の “cmd” パラメータで送られる値とラジオボタンに 添えるラベルからなるタプルの配列