projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.1.10
[fms.git]
/
src
/
http
/
pages
/
announceidentitypage.cpp
diff --git
a/src/http/pages/announceidentitypage.cpp
b/src/http/pages/announceidentitypage.cpp
index
710904c
..
b67f16f
100644
(file)
--- a/
src/http/pages/announceidentitypage.cpp
+++ b/
src/http/pages/announceidentitypage.cpp
@@
-18,12
+18,18
@@
const std::string AnnounceIdentityPage::CreateLocalIdentityDropDown(const std::s
std::string id;
\r
std::string name;
\r
std::string pubkey;
\r
std::string id;
\r
std::string name;
\r
std::string pubkey;
\r
+ std::string keypart="";
\r
\r
st.ResultText(0,id);
\r
st.ResultText(1,name);
\r
st.ResultText(2,pubkey);
\r
\r
\r
st.ResultText(0,id);
\r
st.ResultText(1,name);
\r
st.ResultText(2,pubkey);
\r
\r
- rval+="<option value=\""+id+"\" title=\""+pubkey+"\">"+name+"</option>";
\r
+ if(pubkey.size()>8)
\r
+ {
\r
+ keypart=pubkey.substr(3,5);
\r
+ }
\r
+
\r
+ rval+="<option value=\""+id+"\" title=\""+pubkey+"\">"+SanitizeOutput(name+keypart)+"...</option>";
\r
st.Step();
\r
}
\r
rval+="</select>";
\r
st.Step();
\r
}
\r
rval+="</select>";
\r
@@
-81,7
+87,7
@@
const std::string AnnounceIdentityPage::GeneratePage(const std::string &method,
content+="<tr><td colspan=\"4\"><center>Select Identity : ";
\r
content+=CreateLocalIdentityDropDown("localidentityid","");
\r
content+="</td></tr>";
\r
content+="<tr><td colspan=\"4\"><center>Select Identity : ";
\r
content+=CreateLocalIdentityDropDown("localidentityid","");
\r
content+="</td></tr>";
\r
- content+="<tr><td colspan=\"4\"><center>Type the answers of a few puzzles</td></tr>";
\r
+ content+="<tr><td colspan=\"4\"><center>Type the answers of a few puzzles
. The puzzles are case sensitive.
</td></tr>";
\r
content+="<tr>";
\r
\r
//TODO if we are already inserting a solution for an identity - we shouldn't select any puzzles that are older than the one we are inserting
\r
content+="<tr>";
\r
\r
//TODO if we are already inserting a solution for an identity - we shouldn't select any puzzles that are older than the one we are inserting
\r