mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
webui: layout improvements
This commit is contained in:
parent
c9d6cb6a07
commit
4c66bb87bb
@ -68,4 +68,4 @@
|
||||
&.text
|
||||
padding-left: $author_width
|
||||
top: 0px
|
||||
left: $author_width
|
||||
left: $author_width
|
||||
|
@ -27,12 +27,12 @@ module.exports = {view: function(){
|
||||
if (curraccount == null) {
|
||||
accountMap.clear();
|
||||
return m("div", [
|
||||
m("h2","accounts:"),
|
||||
m("h2","login:"),
|
||||
m("hr"),
|
||||
accounts.map(function(account){
|
||||
accountMap.set(account.id,account);
|
||||
return [
|
||||
m("div", {onclick: m.withAttr("account", selAccount), account:account.id }, account.location + " (" + account.name + ")"),
|
||||
m("div.btn2", {onclick: m.withAttr("account", selAccount), account:account.id }, account.location + " (" + account.name + ")"),
|
||||
m("br")
|
||||
]
|
||||
})]);
|
||||
|
@ -23,20 +23,20 @@ function Page(content, runst){
|
||||
var needpasswd = rs("control/password");
|
||||
//console.log("runstate: " + (runstate === undefined ? runstate : runstate.runstate));
|
||||
if(runstate === undefined){
|
||||
return m("div", "waiting_server ... ");
|
||||
return m("h2", "waiting_server ... ");
|
||||
} else if (runstate.runstate == null){
|
||||
return m("div", "server down");
|
||||
return m("h2", "server down");
|
||||
} else if (needpasswd != undefined && needpasswd.want_password === true){
|
||||
return m("div",[
|
||||
m("div","password required"),
|
||||
m("div",needpasswd.key_name),
|
||||
m("h2","password required"),
|
||||
m("h3",needpasswd.key_name),
|
||||
m("input",{type:"password", onchange:m.withAttr("value", setPasswd)}),
|
||||
m("br"),
|
||||
m("button",{onclick: function(){sendPassword(needpasswd);}},"send password"),
|
||||
m("input[type=button][value=send password]",{onclick: function(){sendPassword(needpasswd);}}),
|
||||
]);
|
||||
} else {
|
||||
if ("waiting_init|waiting_startup".match(runstate.runstate)) {
|
||||
return m("div","server starting ...")
|
||||
return m("h2","server starting ...")
|
||||
} else if("waiting_account_select|running_ok*") {
|
||||
if (runst === undefined || runst.match(runstate.runstate)) {
|
||||
return m("div", [
|
||||
|
@ -36,7 +36,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
return m("div",[
|
||||
m("p","turtle file search"),
|
||||
m("h2","turtle file search"),
|
||||
m("div", [
|
||||
m("input[type=text]", {onchange:m.withAttr("value", updateText)}),
|
||||
m("input[type=button][value=search]",{onclick:dosearch})
|
||||
|
Loading…
Reference in New Issue
Block a user