Commit 32a2881e authored by Laura Schlimmer's avatar Laura Schlimmer
Browse files

cm-dashboard setup

parent e1ad2988
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
ul.navigation {
  list-style-type: none;
}

ul.navigation li {
  display: inline;
}
+5 −0
Original line number Diff line number Diff line
<ul class="navigation">
  <? foreach ($nav_items as $link => $text): ?>
    <li><a href=<?= $link; ?>><?= $text; ?></a></li>
  <? endforeach; ?>
</ul>
+25 −0
Original line number Diff line number Diff line
/**
 * This file is part of the "FnordMetric" project
 *   Copyright (c) 2015 Laura Schlimmer, Paul Asmuth
 *
 * FnordMetric is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License v3.0. You should have received a
 * copy of the GNU General Public License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */

#include "ini_parser.h"

namespace fnord {

void IniParser::start(const String& str) {
  fnord::iputs("start parsing $0", str);

}

bool IniParser::test() {
  return true;
}


}
+32 −0
Original line number Diff line number Diff line
/**
 * This file is part of the "FnordMetric" project
 *   Copyright (c) 2015 Laura Schlimmer, Paul Asmuth
 *
 * FnordMetric is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License v3.0. You should have received a
 * copy of the GNU General Public License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */

#ifndef _FNORD_BASE_INIPARSER_H_
#define _FNORD_BASE_INIPARSER_H_

#include <tuple>
#include <string>
#include "fnord/base/inspect.h"

namespace fnord {

class IniParser {
public:

  static void start(const String& str);

  static bool test();

};
}

#endif

+21 −0
Original line number Diff line number Diff line
/**
 * This file is part of the "FnordMetric" project
 *   Copyright (c) 2015 Laura Schlimmer, Paul Asmuth
 *
 * FnordMetric is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License v3.0. You should have received a
 * copy of the GNU General Public License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */

#include "fnord/base/ini_parser.h"
#include "fnord/test/unittest.h"

using namespace fnord;

UNIT_TEST(IniParserTest);

TEST_CASE(IniParserTest, TestParseIniFile, [] () {
  bool t1 = IniParser::test();
  EXPECT_EQ(t1,false);
});