summaryrefslogtreecommitdiff
path: root/src/master_content.hpp
blob: 23db633df020535fd059c1693e531892269d3320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MASTER_CONTENT_HPP
#define MASTER_CONTENT_HPP

#include <cppcms/view.h>
#include <cppcms/form.h>  

#include <string>

namespace apps {
	
class strusCms;

}

namespace content {

struct master : public cppcms::base_content {
	std::string title;
	std::string login_link;
	std::string logout_link;
	std::string username;

	public:
		master( ) : cppcms::base_content( )
		{
			// TODO: ini
			//~ c.login_link=wi.users.login_url();
			login_link = "/strusCms/login";
			logout_link = "/strusCms/logout";
		}
		
		std::string root( ) {
			return "/strusCms";
		}
};

}

#endif